How to Publish DHT11 Sensor Data from NodeMCU to Mosquitto MQTT Broker over LAN | NodeMCU | MQTT |

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 72

  • @diogotorres9400
    @diogotorres9400 7 หลายเดือนก่อน +1

    MAN THANK YOU SO MUCH. I was trying to figure it out this problem for weeks!! 🙏🙏

    • @Fusion_Automate
      @Fusion_Automate  7 หลายเดือนก่อน

      You're most welcome friend ✌️

  • @tecfixed2840
    @tecfixed2840 ปีที่แล้ว +1

    massive thanks for this very helpfull video, was unable to connect using mqtt and your information got me running within 15 mins after spending days looking on the internet.

  • @TheSelfUnemployed
    @TheSelfUnemployed ปีที่แล้ว +2

    You are the BEST! I can finally move on with my project! Many thanks and blessings upon you good sir

  • @dhanushkadharmasiri6528
    @dhanushkadharmasiri6528 4 หลายเดือนก่อน +1

    Thanks lot. It took 4 days to solve this issue.

  • @marelyruiz1321
    @marelyruiz1321 7 หลายเดือนก่อน +1

    THANK YOU SO SO SOOO MUCH

  • @yupingliao4078
    @yupingliao4078 9 หลายเดือนก่อน +1

    Thank you

  • @hashanmadusanka6128
    @hashanmadusanka6128 7 หลายเดือนก่อน +1

    thank you so much

  • @vophuctoan664
    @vophuctoan664 6 หลายเดือนก่อน

    Thank you so much

  • @zhepty12
    @zhepty12 4 หลายเดือนก่อน +2

    thanks a lot ,, you make my day

  • @denyyrahmat0
    @denyyrahmat0 5 หลายเดือนก่อน +1

    very helpful video. thankyou👍👍👍👍

  • @huseinperez4948
    @huseinperez4948 ปีที่แล้ว +1

    Thank you so much indeed. That was just great !!!!

  • @NataliaJimenez05
    @NataliaJimenez05 6 หลายเดือนก่อน +1

    I LOVE YOU

  • @truongquangbaokhanh2910
    @truongquangbaokhanh2910 ปีที่แล้ว +1

    THANK YOUUUUUUUUUUUUUUU MASTERRRRRRRRRR

  • @TheLbky0404
    @TheLbky0404 ปีที่แล้ว +1

    ^^.. Best Description.. Thank you!

  • @Pechette-1911
    @Pechette-1911 ปีที่แล้ว +1

    THANK YOU VERY MUCH!!!

  • @luxcatz8452
    @luxcatz8452 ปีที่แล้ว +1

    Thank you so much

  • @dhicosatria3050
    @dhicosatria3050 9 หลายเดือนก่อน +2

    the blog doesn't seem to exist?

    • @Fusion_Automate
      @Fusion_Automate  9 หลายเดือนก่อน +1

      fusion-automate.blogspot.com/2023/06/how-to-publish-dht11-sensor-data-from_5.html?m=1

    • @Fusion_Automate
      @Fusion_Automate  9 หลายเดือนก่อน +1

      Could You please use the new url for blog. Thanks.

    • @dhicosatria3050
      @dhicosatria3050 9 หลายเดือนก่อน +2

      big thanks!@@Fusion_Automate

  • @hailuuuc724
    @hailuuuc724 หลายเดือนก่อน +1

    why i cant connect to MQTT the next day although first day i successfully connected? please help

    • @Fusion_Automate
      @Fusion_Automate  หลายเดือนก่อน

      Right, again we have to delete all configuration and follow same process as this is the windows issue so we cant do anything in this.

  • @sufianronzi1786
    @sufianronzi1786 7 หลายเดือนก่อน +1

    Thank you sir it works the other day and i was happy! But the next day i ran the program, it doesn't work.. it says connection failed just like before...I redo all like in the video again but the issue doesn't resolve... Any thoughts on this sir? Or anyone?

    • @Fusion_Automate
      @Fusion_Automate  7 หลายเดือนก่อน

      I have faced the same issue, its windows problem so we have to delete all previous configuration and we have to create it again like port forwarding and firewall rules.

    • @sufianronzi1786
      @sufianronzi1786 7 หลายเดือนก่อน

      @@Fusion_Automate thanks for the suggestion. I tried as per suggested and it works like magic! it looks like i need to do as per suggested every time i boot up my pc. Wondering if there's a way to not to go through the reconfiguration process each time booting up the pc. Btw, i will be using raspberry pi instead of pc. Tried already on raspberry pi and no firewall and port forwarding configuration as of now. Thank you sir and wish me luck for my fyp🙏🏼

  • @erwinhafiztriadi5994
    @erwinhafiztriadi5994 6 หลายเดือนก่อน

    Sir can i ask you something, im literally new on this thing, if i use broker locally on my laptop, how can i send data to that broker from my esp32 ? Im wondering how.Please help sir thanks!

  • @abdurrahmansisman6897
    @abdurrahmansisman6897 10 หลายเดือนก่อน

    the dht11 is working ,the problem is you have to write dht.begin in void setup when you do that everything working fine

  • @os-channel
    @os-channel ปีที่แล้ว +1

    Hi Fusion Automate,
    what a great project! It works properly.
    I would like to setup a MQTT project with one ESP32 as a subscriber and another ESP32 as publisher. The broker should be a local RasPi standalone as Broker-Server creating its own WLAN without connection to the Internet via Router or Access Point.
    Can you give me hints how to do this?
    The handling of the ESP32 should be easy. But with the RasPi I have got my problems to combine the installed Mosquitto and the WLAN-Server capabilities.
    Do you have this setup described in one of your courses? (Please without NodeRed.)
    Thanks!
    Oli

    • @Fusion_Automate
      @Fusion_Automate  ปีที่แล้ว +1

      Hi, Yes it is possible to do it without node-red. Actually you dont have to do anything just install mosquitto in PI and connect your pi with any wifi and same wifi you can use for esp32. You can ping me on WhatsApp or Telegram for in depth discussion or doubts.

  • @hermantoprastyawan5420
    @hermantoprastyawan5420 4 หลายเดือนก่อน +1

    how can i get MQTT explorer?

    • @Fusion_Automate
      @Fusion_Automate  4 หลายเดือนก่อน

      Please join this telegram channel to download it: t.me/+ut3hOA01l6lmYTY9

  • @Sahil-og01210
    @Sahil-og01210 ปีที่แล้ว +1

    Sir it show failed to read from dht11 sensor although i check dht11 sensor by putting code of dhtTester it work properly

    • @Fusion_Automate
      @Fusion_Automate  ปีที่แล้ว +1

      Okay, then simply edit dht tester code and make integrate mqtt code in that.

  • @tanujmishra5711
    @tanujmishra5711 7 หลายเดือนก่อน +1

    how do you solve the failed to read from DHT sensor problem in serial monitor in the videp

    • @Fusion_Automate
      @Fusion_Automate  7 หลายเดือนก่อน

      there was loose connection with dht11 bcs of that that error occurred.

    • @tanujmishra5711
      @tanujmishra5711 7 หลายเดือนก่อน +1

      @@Fusion_Automate thank you

  • @tatatadooooo11
    @tatatadooooo11 ปีที่แล้ว +1

    sir. we need to create topic before run arduino code or not ? many thanks

    • @Fusion_Automate
      @Fusion_Automate  ปีที่แล้ว

      Yes, you need to create topic first in arduino code and then you have to upload code so publish and subscribe event use those topics.

  • @asepsubarkah8360
    @asepsubarkah8360 7 หลายเดือนก่อน

    What if with Ethernet connection? Have you can connect?

    • @Fusion_Automate
      @Fusion_Automate  7 หลายเดือนก่อน

      I am sorry, Could you please explain more?

  • @yinyenlee109
    @yinyenlee109 7 หลายเดือนก่อน

    Very good video! But I have some question about the mosquitto. The error messages are shown as below:
    1711989156: Opening ipv4 listen socket on port 1883.
    1711989156: Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.
    1711989156: Opening ipv6 listen socket on port 1883.
    1711989156: Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.
    How yo solve this problem? I google many times on this but didnt have a useful solution about this. Thank you!

    • @Fusion_Automate
      @Fusion_Automate  7 หลายเดือนก่อน +1

      It seems like some other application is using same port 1883. So, you have to fetch which application is using same port and you have to close that application.
      netstat -p tcp -ano | findstr :1883
      You can use above windows command to check the process id which use the port 1883.

    • @yinyenlee109
      @yinyenlee109 7 หลายเดือนก่อน +1

      @@Fusion_AutomateI had found another way to solve this problem. Thank you!

    • @Fusion_Automate
      @Fusion_Automate  7 หลายเดือนก่อน

      Can you Share it here ? So in future if some have same problem then can learn from it.

    • @yinyenlee109
      @yinyenlee109 7 หลายเดือนก่อน

      @@Fusion_Automate I just create a text file and run it as administrator with two lines,
      listener 1883
      allow_anonymous true
      Then, I save it as listener.conf in the file directory of mosquitto and run the command in command prompt,
      mosquitto -v -c listener.conf
      Then the mosquitto can run already.

    • @yinyenlee109
      @yinyenlee109 7 หลายเดือนก่อน

      Also, now I am trying to import a machine learning model into node red for classification of data received through a pzem sensor, is there a way can directly import the model that I had trained into node red?

  • @andre267
    @andre267 7 หลายเดือนก่อน +1

    I got a MQTT Server on my Pi 2 and get always rc 2 error.
    The MQTT Explorer trys to connect always.

    • @Fusion_Automate
      @Fusion_Automate  7 หลายเดือนก่อน

      So you mean, your mqtt explorer is not able to connect with broker running inside raspberry pi ?

    • @bromasoficial8855
      @bromasoficial8855 5 หลายเดือนก่อน

      I got the same thing, I’m working with esp8266

  • @NafisSadik-r9k
    @NafisSadik-r9k 2 หลายเดือนก่อน

    mqtt is connected with my nodemcu, but in mqtt explorer, I cant see sensor data, why that's happening?

    • @christiannolitambio7928
      @christiannolitambio7928 2 หลายเดือนก่อน

      Try to add a serial output of your sensor. If it doesn’t show the sensor data then you have a problem with your sensor(mostly pin issue)

  • @nadabhd-r7c
    @nadabhd-r7c 8 หลายเดือนก่อน

    please I need help , address 127.0.0.1 doesn't work , i can't define my local ip address , I want connect it with mobile client

  • @user-engineerchef
    @user-engineerchef 8 หลายเดือนก่อน +1

    port forwarding blog is not existing

    • @Fusion_Automate
      @Fusion_Automate  8 หลายเดือนก่อน

      Please check here: fusion-automate.blogspot.com/

  • @Sahil-og01210
    @Sahil-og01210 ปีที่แล้ว

    SIR, I DO THIS AS YOU SAY BUT IT SHOW MQTT CONNECTED THEN SHOW TEMPERATURE AND HUMIDITY AND AGAIN SHOW SAME THAT MQTT CONNECTED AND TEMPERATURE AND HUMIDITY ETC... BUT NOT SHOW WHEN I SUBSCRIBE TOPIC ON MYMQTT IN MY MOBILE PHONE.

    • @Fusion_Automate
      @Fusion_Automate  ปีที่แล้ว +1

      there's problem in your code i need to check in your code

    • @Sahil-og01210
      @Sahil-og01210 ปีที่แล้ว

      I GIVE MY CODE HERE PLEASE CHECK IT

  • @DhanushKumar-k9u
    @DhanushKumar-k9u 8 หลายเดือนก่อน +1

    how to subcribe this??

    • @Fusion_Automate
      @Fusion_Automate  8 หลายเดือนก่อน

      I didn't get what you are talking about

  • @Sahil-og01210
    @Sahil-og01210 ปีที่แล้ว +1

    please help me!!!

    • @Fusion_Automate
      @Fusion_Automate  ปีที่แล้ว

      Bro you text me on WhatsApp +919974477759