Page 1 of 1

raspiberry to act mqtt server and multiple esp8266 and control with browser

Posted: Wed Mar 25, 2020 6:20 pm
by pk12345
Namasty to all,
I am new to raspberry pie and want to control esp8266 using web browser.
I have worked on this link:https://randomnerdtutorials.com/raspber ... o-esp8266/.
For one esp8266 its working fine.
So, same things but to control 10 esp8266.How can i do it?
please help me out.and also i am new python.
Provide some links regarding this situation

Pranav

Re: raspiberry to act mqtt server and multiple esp8266 and control with browser

Posted: Wed Mar 25, 2020 6:45 pm
by jbudd
I think the tutorial you are following uses an MQTT topic like ""esp8266/4"" to switch the LED on GPIO 4.

You need to change your code so that the topic also identifies the device - possibly "esp8266/EspA/4" or "esp8266/espB/4" and the ESP subscribes to esp8266/espA/#" or "esp8266/espB/#"