Is there any way to use one ESP8266 and have input and output connected to it?
For example, if I want to use it for the light switch in the way the videos on youtube describe I need to have one for input and one for output, I was reading the ESP8266 for the door sensor and sprinkler system and noticed for the sensor it uses “outTopic” and for the other one"suscribeTopic" and for the sprinkler system there is one line which is not on the other code “client.subscribe(subscribeTopic);”
I tried to combine the two but it’s not working.
If you have the solution please share it. thanks
Using one ESP8266 for input+output
MWB
#1
zbot473
#4
Yeah. you can. i think there is an example in the pubSub client examples folder in the Arduino IDE.