We have success!
I ended up reformatting another esp module 12 (nodemcu) , then Flashing it with v2
Finally I added your new code.. I just use GPIO 12 -D6 on the esp module.
added a relay and fan .
I then added the udpwrite code for the new slave to my Master module.
Adjusted the temp to set the trigger and Slave1 (Node146) turned on, followed about 5 sec later was the latest Slave2 (Node196) ....yeah!
It would appear I was not doing anything wrong but something got into the code or firmware someplace.
I do find the save on "configuration' in most cases does not save my settings. I have noticed this on many many occasions... I would blame it on the esp memory but I have had the same results with many esp12, from various companies.
Just for info my current hardware:
Master Node is an Electrodragon module with a DHT module
Slave 1 is also an Electrodragon module (set to OFF mode)
Slave 2 is a Nodemcu (esp12) module (set to OFF mode)
I do have some Sonoff modules as well but have not re-flashed any of those.... would be nice If I had the code for the Sonoff so I could flash back if I wanted to ....
The elecrodragons modules work quite well and are similar but with 2 relays. A great price at $6.00.
The only thing I found was there builtin power supply is not very good.. It reboots the module if you use any sort of motor as a load--- to sensitive to emf spikes.
There support is very very good and they are working on a new power supply. They even refunded me and will send a new one when there new version comes out.
All this without even asking.... wow
Anyway, next is to run some troubleshooting codes to see how they react. Some reliability testing.
Hopefully after that, in the next few days I will modify a pir for 3v input and run your new code.
Question:
Is there a method / technique / code to display the status of the Slave module on the master module ?
Was thinking it would be nice to be able to see it on the master to ensure the Slaves are on or off?
Kind of like a SLAVE Status...
Thanks, could not have got this far with out your help+....
Joe