• 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 9 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 9 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 9 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] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

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

Copyright Ā© 2013-2025 Ā· 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.