Это видео недоступно.
Сожалеем об этом.

AWS IoT | Flutter MQTT Client App [Full Version]

Поделиться
HTML-код
  • Опубликовано: 19 июн 2021
  • In this video, I'm gonna show you completing the Flutter Mqtt Client App for ESP32CAM.
    This mqtt client application works on macOS, iOS, and Android.
    [Ep0. AWS IoT | How to install Mosquitto Broker on Amazon EC2]
    • AWS IoT | How to insta...
    [Ep1. AWS IoT | ESP32CAM working as a publisher on MQTT]
    • AWS IoT | ESP32CAM wor...
    [Ep2. AWS IoT | Flutter MQTT Client App for macOS - UI Part (For Newbies)]
    • AWS IoT | Flutter MQTT...
    [Flutter mqtt_client]
    pub.dev/packag...
    [Flutter image]
    pub.dev/packag...
    [Project Github]
    github.com/001...
    #Flutter #MacOS #MQTTCLIENT #ESP32CAM #AWSIoT #EC2 #ThatProject

Комментарии • 83

  • @ThatProject
    @ThatProject  3 года назад +3

    That Project's Channel - ruclips.net/user/ThatProject
    Join FB Group - facebook.com/groups/138965931539175

  • @sahil.lunawat
    @sahil.lunawat 3 года назад +2

    Hi! The playlist is very helpful and fabulously structured.
    I implemented the steps for AWS and app. It works very well in debug mode in flutter. The problem arises when I build the app to release version.
    In debug mode, the app connects to the AWS endpoint and I can see the video, streamed through my ESP32. While in release mode, it builds properly but it doesn’t connect to AWS and stays on the Connecting dialog box.
    And it would really help if you could resolve what I am missing.

    • @ThatProject
      @ThatProject  3 года назад +1

      Did you add the security options for release?
      Add entities to macos/Runner/Release.entitlements the same as DebugProfile.entitlements.

    • @sahil.lunawat
      @sahil.lunawat 3 года назад

      @@ThatProject Great. Thank you.
      Are there any such changes to be made for Android app?

    • @ThatProject
      @ThatProject  3 года назад

      @@sahil.lunawat You might need to add permission to connect the network.

  • @Collins01
    @Collins01 2 года назад

    Wonderful. Please create a course on iot +flutter. I will buy

  • @sanghunkim4598
    @sanghunkim4598 3 года назад

    Thank you. very helpful for me.. good!!!

  • @ggtechnocracy6709
    @ggtechnocracy6709 3 года назад +4

    Create a course.... I'm ready to take..

  • @vijaykumarmourya5810
    @vijaykumarmourya5810 3 года назад

    Fabulous playlist

  • @karlafelix9829
    @karlafelix9829 2 года назад +1

    Hello, you did a very good job with this video, super helpful! Do you think I can use this library image do capture images from the video stream? Like if it have a capture button then it saves one frame from the stream in a gallery that can be displayed later? I saw that this lib have a jpegframe function but I don't know if it would do the job, do you have any advices of where could I start?

    • @ThatProject
      @ThatProject  2 года назад +1

      That's possible. Since we are receiving the data of the image frame, we can save it as a Jpeg image file. I've implemented a similar feature in one of my previous projects. Please take a look at this. ruclips.net/video/9GyOTlOGjSA/видео.html

    • @karlafelix9829
      @karlafelix9829 2 года назад

      @@ThatProject Hello, thank you for your answer! I'm trying to implement using your video as base and I'm not sure where to put the RepaintBoundary with the _globalKey, I understood that the funtion TakeScreenshoot uses it to get to the stream data, yes? I put it under Body(), like this ==>
      CODE +++
      Expanded(
      child: bodyMenu(),
      flex: 2,
      ),
      Expanded(
      child: RepaintBoundary(
      key: _globalKey,
      child: bodyStream(),
      ),
      flex: 8,
      ),
      CODE ++++
      but I`m getting a error about RenderObjectCalled on a null, maybe it should be inside BodyStream?
      Another question if you don't mind is, can I subscribe to more than one mqtt topic in the same app? I already implemented a function to take pictures inside the ESP32-CAM, maybe I can just send some request and then send the picture to a another mqtt topic?

  • @sheikayubsheikaadil9178
    @sheikayubsheikaadil9178 3 года назад

    Hi Bro! I'm a big fan of your videos and you're doing awesome interesting stuffs with mobile app and IOT and thanks for uploading such kind of topics
    and I have a question for you.......................
    Can you make a video full tutorial on how to make a Flutter MQTT Client App to monitor and control IoT devices from Adafruit IO MQTT Broker ??

    • @ThatProject
      @ThatProject  3 года назад

      Oh, thank you. I don't use the Adafruit IO MQTT Broker so you need to find other tutorials for this. I'll make a new tutorial for MQTT if I have a good idea for that project, but let's see.

  • @finnyfunplace824
    @finnyfunplace824 3 года назад

    Great Job .. Eric .. is there a chance to add a Deepsleep wakeup with bidirectional communication from app to save the battery on the Esp32 ..

    • @ThatProject
      @ThatProject  3 года назад

      That's a good point. I will think about handling battery-saving mode including Deep Sleep wakeup.

  • @DAVO8800
    @DAVO8800 2 месяца назад

    Thanks!

  • @furkanakbyk9466
    @furkanakbyk9466 2 года назад

    Hi sir, I just saw your video and subscribed to your channel, and honestly I appreciate your effort. I have a question. I want to make an IoT project with flutter and have no experience in this field. I just made simple mobile apps with flutter. I'm gonna work with a temperature data logger. How should I follow a path? Can you explain the process, please?

    • @ThatProject
      @ThatProject  2 года назад

      I recommend that you try to make a very basic app with Flutter one by one. This is an app that displays data from the dust sensor connected to ESP32 via BLE. ruclips.net/video/w6jo2kJanqU/видео.html

    • @furkanakbyk9466
      @furkanakbyk9466 Год назад

      ​@@ThatProject Thank you so much, sir. Actually, I asked the question two weeks ago but I made some process. However, I am stuck on a problem. Is there any chance to talk to you privately?

  • @edgardofb3012
    @edgardofb3012 2 года назад

    hello, thanks for the tutorial, I get this error on the front: Only single frame JPEGs supported

    • @ThatProject
      @ThatProject  2 года назад

      It seems that there are multiple images in the received data???

  • @enessimsek4232
    @enessimsek4232 3 года назад

    Hi,
    Is it possible to use the same cloud for streaming and sending-receiving data over the esp32cam? For example I want to streaming and turn the led on in the same application. Is it possible?

    • @ThatProject
      @ThatProject  3 года назад

      Each data can be controlled by setting a specific topic and publishing the data with it. So you can control as you want.

  • @androidlearners9163
    @androidlearners9163 2 года назад

    Hi,thanks for your toturial. But I am facing some issue during connection. I don't know why my mqtt not connecting with aws iot server. Can you help me out.

    • @ThatProject
      @ThatProject  2 года назад

      Most of the time the problem is with the AWS bridge side. If you cannot make a connection, please check this part again.

    • @androidlearners9163
      @androidlearners9163 2 года назад

      @@ThatProject I follow each and every step of your video but still the connection diconnect

    • @ThatProject
      @ThatProject  2 года назад +1

      @@androidlearners9163 What version of your ESP are you using? In this project, I was using ESP 1.0.6, not ESP 2.x.

  • @daffaspero1565
    @daffaspero1565 4 месяца назад

    hey why E/flutter ( 4424): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: mqtt-client::NoConnectionException: The maximum allowed connection attempts ({3}) were exceeded. The broker is not responding to the connection request message (Missing Connection Acknowledgement? please help

    • @ThatProject
      @ThatProject  4 месяца назад

      I think you should first check if the server is operating properly. Have you tried this part first? ruclips.net/video/SDrkv2hUzAc/видео.htmlsi=9bGH8R56gY19a1J8

  • @ghofranebrahim9041
    @ghofranebrahim9041 Год назад +1

    Hello Great job so far, but i am getting this error The argument type 'Uint8Buffer' can't be assigned to the parameter type 'Uint8List'.,any idea how to fix it ?? thanks in advance and looking forward to your reply

    • @ThatProject
      @ThatProject  Год назад +1

      Where are you getting this error?

    • @ghofranebrahim9041
      @ghofranebrahim9041 Год назад

      @@ThatProject img.decodeJpg(recMess.payload.message) as img.Image; , in this line specifically

    • @ghofranebrahim9041
      @ghofranebrahim9041 Год назад

      recMess.payload.message is the problem

    • @ghofranebrahim9041
      @ghofranebrahim9041 Год назад

      Any idea on how to fix this problem ?
      @That Project

    • @ThatProject
      @ThatProject  Год назад

      @@ghofranebrahim9041 recMess.payload.message should be List bytes to decode JPEG image.
      and recMess.payload.message is Uint8Buffer which is interface implements List.
      img.Image jpegImage = img.decodeJpg(recMess.payload.message as List) as img.Image;
      It's unnecessary casting because it's the same.
      Are you sure your ESP32-CAM sending only JPEG images to MQTT Server? It seems to me that the data is corrupted due to ESP32-CAM's wrong transfer.

  • @barandenizdogan3430
    @barandenizdogan3430 2 года назад

    error: A value of type 'Image?' can't be assigned to a variable of type 'Image'. (invalid_assignment at [esp32_cam_demo_app] lib\main.dart:148)
    Can you help me? I cant do run with this error.

    • @ThatProject
      @ThatProject  2 года назад

      There are two kinds of Image. These are the Image object for Flutter UI and the Image library to process different types of images.
      If you look at my code import 'package:image/image.dart' as img; There is this part. I'm using "img" to separate the two. Are you including this part in your code?

    • @gustavosandovalmorales1332
      @gustavosandovalmorales1332 2 года назад

      @@ThatProject I have the same error. Could you help us? plz

    • @ThatProject
      @ThatProject  2 года назад +1

      I corrected that part and re-uploaded it. Please check again.

  • @abdelnacer7721
    @abdelnacer7721 3 года назад

    please make a videos about the applications of RTOS esp32

    • @ThatProject
      @ThatProject  3 года назад +1

      Yeah, why not. I'll do it if I have a good chance at it.

    • @abdelnacer7721
      @abdelnacer7721 3 года назад

      @@ThatProject thank you so much 😊

  • @gustavosandovalmorales1332
    @gustavosandovalmorales1332 2 года назад

    Hello! I am very grateful for the quality videos. I got the following error on line 154: " A value of type 'Image?' cannot be assigned to a variable of type 'Image'". I hope you can help me because I don't know how to solve it. I've implemented the following library: import 'package:image/image.dart' as img; but it didn't work. Thank you very much

    • @ThatProject
      @ThatProject  2 года назад +1

      I corrected that part and re-uploaded it. Please check again.

    • @gustavosandovalmorales1332
      @gustavosandovalmorales1332 2 года назад +1

      @@ThatProject Thanks a lot, that was the error. You're the best!!!!! I love your channel and all the things that I've learned

    • @dickboss1278
      @dickboss1278 Год назад

      ​@@gustavosandovalmorales1332where do you get the solution of the problem

  • @Abbici
    @Abbici 3 года назад

    Stupid question about ESP32-CAM (I think I already did ...): Is it possible to use a mcp23017 with ESP32-CAM?

    • @ThatProject
      @ThatProject  3 года назад

      I don't think there is a problem using MCP23017 with ESP32CAM.

    • @Abbici
      @Abbici 3 года назад

      @@ThatProject Mmmm... I think I'll have to study it better ... Mooore better!

  • @parthgupta4052
    @parthgupta4052 2 года назад

    If I use more than one device, do I need to generate seperate certificates? If yes then how?

    • @ThatProject
      @ThatProject  2 года назад

      No problem. I've already tested it on several MQTT client devices.

  • @stevenalexander7259
    @stevenalexander7259 Год назад

    I got an error after running the flutter. " ImageException: Only single frame JPEGs supported " , do you have any solution for it ? thankyou so so much !

    • @ThatProject
      @ThatProject  Год назад +1

      This error occurs because literally the beginning and end of the transferred data is not a single image.
      First of all, you should check if the JPEG image sent from ESP32CAM isn't broken.

    • @stevenalexander7259
      @stevenalexander7259 Год назад

      @@ThatProject How to check the image from ESP32CAM? I really have no idea

    • @stevenalexander7259
      @stevenalexander7259 Год назад

      It is still error even if i run it while my ESP32CAM turned off..

    • @joovisgunawan
      @joovisgunawan 3 месяца назад

      @@stevenalexander7259 di you manage to do it?

  • @thinhtruong341
    @thinhtruong341 3 года назад

    you thing about ESP32-A1S on ESP32 Audio kit?

    • @ThatProject
      @ThatProject  3 года назад

      Well, I don't know exactly what it is yet. I'll let you know if I get about the ESP32 Audio kit clearly.

  • @rahulvijan9624
    @rahulvijan9624 Год назад +1

    Have you used flutter 3 in this video ?

    • @ThatProject
      @ThatProject  Год назад +1

      No, I didn't. But nothing specified for Flutter 2.x so it'd work on Flutter 3 if you have all the same as me.

    • @rahulvijan
      @rahulvijan Год назад

      @@ThatProject thanks, will try

    • @rahulvijan
      @rahulvijan Год назад

      @@ThatProject Im recieving an error can you guide me as to what im doing wrong
      I/flutter ( 6566): 1-2022-10-25 22:55:05.933345 -- MqttConnectionBase::_onError - calling disconnected callback
      E/flutter ( 6566): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: HandshakeException: Connection terminated during handshake
      I have used your code(esp32cam + the flutter mqtt client app) with esp32cam publishing to my endpoint which is also correctly configured
      im using my certs and endpoint.
      Also esp32cam is sending data which i can see on aws iot test website but the flutter mqtt client is giving the above error, can you please help me on this

    • @rahulvijan
      @rahulvijan Год назад

      Working now, recreated the project and it worked, idk what was the issue but it works now, will try controlling Esp32 cam's led with a button. Any tips ?

    • @ThatProject
      @ThatProject  Год назад

      @@rahulvijan The code I made does not have a part that does commands with ESP32CAM. Implement to send a specific command from App to ESP32CAM via MQTT and change GPIO4 to high or low.

  • @homeplex
    @homeplex 2 года назад

    hello dude can you make homeautomation using mqtt and flutter apps

    • @ThatProject
      @ThatProject  2 года назад

      If there is a good opportunity, I will do a project. Thanks.

  • @riccimicks2477
    @riccimicks2477 2 года назад

    Is there a code about this that works in Android Studio?

    • @ThatProject
      @ThatProject  2 года назад +1

      I believe you can find the link in the video description. The code is made with Flutter and you can play with it in Android Studio.

  • @awaisjamil5713
    @awaisjamil5713 Год назад

    can we use mqtt to send audio messages as well

    • @ThatProject
      @ThatProject  Год назад

      Oh, good question. I think It's possible but As you know MQTT is for very lightweight messaging. It seems to be possible if it is the lowest quality.

  • @chadhyer
    @chadhyer 2 года назад

    Hey. Thanks for the tutorial! I keep getting this error when I try to connect: [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: mqtt-client::NoConnectionException: The maximum allowed connection attempts ({3}) were exceeded. The broker is not responding to the connection request message (Missing Connection Acknowledgement?
    Any suggestions?

    • @ThatProject
      @ThatProject  2 года назад

      Hey Chad, did you confirm that it works on AWS' MQTT test client page?

    • @chadhyer
      @chadhyer 2 года назад

      @@ThatProject do you have any idea why I would have this error in flutter but not Python. I run both in vs

  • @dickboss1278
    @dickboss1278 Год назад

    hi eric i'am using windows, this problem :
    [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: TlsException: Failure in usePrivateKeyBytes (OS Error:
    BAD_PKCS12_DATA(../../third_party/boringssl/src/crypto/pkcs8/pkcs8_x509.c:645)
    passed a null parameter(../../third_party/boringssl/src/ssl/ssl_privkey.cc:397), errno = 318767204)
    #0 _SecurityContext.usePrivateKeyBytes (dart:io-patch/secure_socket_patch.dart:240:75)
    #1 _MQTTClientState.mqttConnect (package:monitoring/main.dart:167:13)
    #2 _MQTTClientState._connect (package:monitoring/main.dart:149:21)

    Application finished.

    • @ThatProject
      @ThatProject  Год назад

      Sorry, I don't get it. Why don't you ask that library directly? github.com/shamblett/mqtt_client/issues

    • @dickboss1278
      @dickboss1278 Год назад

      ​@@ThatProjectI still don't understand what the cause is Failure in usePrivateKeyBytes

    • @dickboss1278
      @dickboss1278 Год назад

      is it because my AWS endpoint is different (ap-southeast-2)

    • @ThatProject
      @ThatProject  Год назад

      @@dickboss1278 I think the AWS region doesn't matter.

  • @hirunguyen4522
    @hirunguyen4522 Год назад

    Thanks!