• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Module 9 Unit 3 Home Automation Course

Q&A Forum › Category: Home Automation › Module 9 Unit 3 Home Automation Course
0 Vote Up Vote Down
CESAR FONG asked 7 years ago

When the movement sensor detects a movement (and it is marked as armed) the ESP i am using NodeMCU lost the connection to MQTT server and don’t response. I have uploaded the same code you put and i guess i have the same circuit šŸ™‚

Any feedback about it?

2 Answers
0 Vote Up Vote Down
CESAR FONG answered 7 years ago

More information.. after execute theĀ client.publish(“home/office/esp1/motion/notification”, “MOTION DETECTED”);
I lost the connection to the MQTT server… (my mqtt uses user and password) and start to receive this
 
Attempting MQTT connection…
failed, rc=-2 try again in 5 seconds
 

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Hi Cesar,
I need more informationĀ about your setup.

  • Can you post your codeĀ on Pastebin.com?
  • Everything else is working properly? For examples,Ā the sensor is posting data to the Node-RED UI?
  • When you click the Arm button, do you receive the armed message back in the Node-RED UI?

Thanks

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login Ā»

Latest Course Updates

  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023
  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.1) November 20, 2022

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright Ā© 2013-2023 Ā· RandomNerdTutorials.com Ā· All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.