After having detected a mouvement, the system stops running and gives “attempting MQTT connection failed…rc-2”
Once the motion has been detected, the sketch shows once more t° & humidy and disconnects
No solution found in the www.
Any idea?
When I reduce the temperature/humidity detection period to 10 sec. the systems continues to run and behaves as expected.
Thanks for any explanation or solution
jlb
Pitty, the issue is still present.
Mainly after a motion detection, the system disconects and neverr connect back.
any idea is welcome
That happens with the ESP8266 or with the Arduino board?
Which pin are you using for the PIR motion sensor?
Hi Rui,
Thanks to answer.
It’s literally as in the course, Model8 Part3
With ESP and Pin4
I’ve tried everything, even exchange the ESP, isolate the “movement part” in the sketch, disconnect the “non motion” part in Node Red, …
I’ve put a “keep MQTT alive” of 1000
Nothing to do. it’s work as long as no motion is detected.
After detection and a few seconds, I receive an “attempting…rc-2” and I must reload the sketch.
I don’t have more idea.
Pitty because it’s a very interesting project.
Jean-Luc
Hi Rui,
Today, I’ve exchanged the RPI (3) and the ESP
I’ve started by fixing (downsizing) the “motion only” sketch=> no prblm
Then I’ve added the “Switch” part =>works
Then I’ve added the “Temp & Humidity” part => works
But I’d also to exchange the PIR, it was constantly making detections, even after adjustments of “time” & “sensibility” (I’ve to test it with another sketch)
Seems no “attempting….” occurs anymore.
I’ll let it run the all night.
I’ve also tried to reuse the first ESP ==> “attempting…” occurs back
Do you have some thoughts about it?
I’ve been recently having problems with the PIR motion sensor myself, but in another project.
Does your PIR sensor has the option to set to single trigger?
Yes, but without any other mentions as low/high.
The jumper is on low
Question, how to test the ESP? do you have any SW to use.
I want to know why the first ESP is not working in this project.
Merci
.