pk12345
Posts: 1
Joined: Wed Mar 25, 2020 4:58 pm

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

Wed Mar 25, 2020 6:20 pm

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

jbudd
Posts: 1446
Joined: Mon Dec 16, 2013 10:23 am

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

Wed Mar 25, 2020 6:45 pm

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/#"

Return to “Beginners”