Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By joeman2116
#55695 I have several esp nodemcu units running espbasic v3
They each control 1 relay and have buttons to turn on or off or toggle and a status which tells me if button is on or off.

1. I would like to use another esp unit as a master control to control the other units.
Basically one unit would have buttons which represent all the other esp modules buttons.

2. I looked at wget, i think this would work but need some examples to get me started
Also how to get the status back from the slave to the master?.

Any help would be appreciated
Thanks
Joe
User avatar
By aphawk
#55708 Maybe you can use Thingspeak, I think this way is very easy.

You can create many channels, each one representing one module.

As example, if you have two modules, and each module has two buttons, you can create two channels, and each one having one string representing the boolean state of each channel.

If the string is "01", the first button is off, and the second is activated.

Is very easy to access Thingspeak, and each module put the state of her buttons. The master module only consult all the channels.
User avatar
By Mmiscool
#55734 If you use wget in conjunction with the msg branch you could do this.

See the msgbranch example here.
https://www.esp8266basic.com/msg-url-advanced.html
https://www.esp8266basic.com/msg-url-usage.html

You would use wget on the master control esp to tug the msg url on the slave devices.