Esp32 Ble Communication

Younes
Posts: 2
Joined: Sat Dec 05, 2020 12:50 am

Esp32 Ble Communication

Postby Younes » Sat Dec 05, 2020 12:59 am

Hello , can some one help me ?
I'm new in arduino and Programs
We suppose that we have 2 Esp32 , Esp1 and Esp2
I want to Read with my Esp1 an input of the Esp2 and then i turn on a lamp in my Esp2 , or the Esp2 sends an information of the input and send it to My Esp2
I tried with the example of Server and client , the connection worked but i don't know how to read an input or send information of the input .
Help me and thank you

ESP_Jan
Posts: 42
Joined: Tue Dec 01, 2020 10:56 am

Re: Esp32 Ble Communication

Postby ESP_Jan » Thu Dec 10, 2020 11:29 am

Hi Younes,

Using Wi-Fi: set up a webserver on the 2nd ESP.
When the 1st ESP reads the input it sends a HTTP request to the 2nd ESP.
The 2nd ESP turns the lamp on or off, depending on the request from the 1st ESP.

Alternatively use the ESP-NOW protocol to comunicate directly between the two ESPs.

To use bluetooth look at this forum post: viewtopic.php?t=7893

Feel free to post any follow-up questions.

Who is online

Users browsing this forum: No registered users and 85 guests