hi everyone!
i'm trying to connect 2 esp8266 over a MQTT from adafruit.
to each esp is a light and a button connected.
my plan is that if you press the button on one of the esp's, both lights turn on for 20 seconds ( keep in mind that the esp's are not in the same home network, and are a few miles apart from each other)
the problem is that i have not enough knowledge about programming in the arduino ide to do this.
can anybody help me
thanks in advance