Page 1 of 1

Connect multiple ESP8266 with mobile

Posted: Mon Jul 17, 2017 7:56 pm
by amtech
Hi,

I've three ESP8266 modules. All are used as web-servers as transparent serial link.
With one to one connection it's working OK.
How can I connect to all three module with one mobile application?

Thanks.

Re: Connect multiple ESP8266 with mobile

Posted: Mon Jul 24, 2017 6:35 pm
by pratik
Perhaps you should consider ESP-MESH?
https://github.com/espressif/ESP8266_MESH_DEMO
You can connect multiple devices in a self organizing network without much issue.

Re: Connect multiple ESP8266 with mobile

Posted: Wed Mar 17, 2021 2:14 pm
by Nielson
Assuming you plan, I suggest you look at the ESP8266 examples include with the IDE. The following are links to github but the same code is available in the FMWhatsApp IDE.

Make an ESP8266 an access point with web server.

https://github.com/esp8266/Arduino/blob ... Portal.ino

Web client for ESP8266.

https://github.com/esp8266/Arduino/blob ... Client.ino

The hazy general idea is to have the 4 ESPs/web clients connect to the ESP AP/web server. The Android phone can connect to the ESP AP to get data. Try the other examples because there may be a better way to do what you want.

Re: Connect multiple ESP8266 with mobile

Posted: Thu Apr 29, 2021 1:51 pm
by milesstone
You should use a bus that's designed for this kind of thing, rather than inventing a new one on your own. With your description, I see two options: I2C or RS485. The former is designed for close distance (mostly on the same PCB, maybe a dozen centimeters, while the latter is designed for up to hundreds of meters, offering protection against interference. The ESP comes with I2C support built in. For RS485, you can convert the built-in UART interface to that via a chip (or module) like theyowhatsapp MAX485.

Re: Connect multiple ESP8266 with mobile

Posted: Sat Jul 31, 2021 10:03 pm
by Nielson
milesstone wrote:You should use a bus that's designed for this kind of thing, rather than inventing a new one on your own. With your description, I see two options: I2C or RS485. The former is designed for close distance (mostly on the same PCB, maybe a dozen centimeters, while the latter is designed for up to hundreds of meters, offering protection against interference. The ESP comes with I2C support built in. For RS485, you can convert the built-in UART interface to that via a chip (or module) like theyowhatsapp MAX485.

You know how you have a web link that brings up your HTML GUI developed from one of your esp 8266s? Wondering if that can website can be used to manipulate multiple esp8266s.

Re: Connect multiple ESP8266 with mobile

Posted: Tue Sep 07, 2021 5:13 pm
by nobita001
milesstone wrote:You should use a bus that's designed for this kind of thing, rather than inventing a new one on your own. With your description, I see two options: I2C or RS485. The former is designed for close distance (mostly on the same PCB, maybe a dozen centimeters, while the latter is designed for up to hundreds of meters, offering protection against interference. The ESP comes with I2C support built in. For RS485, you can convert the built-in UART interface to that via a chip (or module) like thekinemaster mods MAX485.


Thanks for the suggestion...hope it work out without any issue.

Re: Connect multiple ESP8266 with mobile

Posted: Sat Sep 11, 2021 2:47 pm
by JohnWick128
milesstone wrote:You should use a bus that's designed for this kind of thing, rather than inventing a new one on your own. With your description, I see two options: I2C or RS485. The former is designed for close distance (mostly on the same PCB, maybe a dozen centimeters, while the latter is designed for up to hundreds of meters, offering protection against interference. The ESP comes with I2C support built in. For RS485, you can convert the built-in UART interface to that via a chip (or module) like the MAX485.



Thanks for your suggestion, it was very helpfulNull's Brawl Apk

Re: Connect multiple ESP8266 with mobile

Posted: Sat Dec 25, 2021 12:06 am
by daniel8317lon
@JohnWick128 Hi. John, yes, you are right. This information is also help me a lot. I want to know about chips that used in mobile.

Re: Connect multiple ESP8266 with mobile

Posted: Fri Sep 23, 2022 12:16 am
by Keonte45
milesstone wrote:You should use a bus that's designed for this kind of thing, rather than inventing a new one on your own. With your description, I see two options: I2C or RS485. The former is designed for close distance (mostly on the same PCB, maybe a dozen centimeters, while the latter is designed for up to hundreds of meters, offering protection against interference. The ESP comes with I2C support built in. For RS485, you can convert the built-in UART interface to that via a chip (or module) like theyowhatsapp MAX485.

Thank you for this!!