Communication with 2 ESP32 over BLE
Posted: Mon Jul 15, 2019 6:15 pm
Hi.
I would like to have one ESP32 reading a sensor, sending the value to the second ESP32,
then second ESP32 sending acknowledge to first one.
I thought it was a basic function, but I spend days to find example or a tuto.
I found examples sending datas to smartphone only.
I'm new to ESP and BLE, so I tried to modify the arduino Ble examples, but with very small succes....
What are the basics to start to do that?
I succeed to send values (with ble_notify on the first one and ble_client on the other one), but how can I send the acknoledge?
And how the second one can request the first one to send values?
Anybody have a complete example?
Thanks!
I would like to have one ESP32 reading a sensor, sending the value to the second ESP32,
then second ESP32 sending acknowledge to first one.
I thought it was a basic function, but I spend days to find example or a tuto.
I found examples sending datas to smartphone only.
I'm new to ESP and BLE, so I tried to modify the arduino Ble examples, but with very small succes....
What are the basics to start to do that?
I succeed to send values (with ble_notify on the first one and ble_client on the other one), but how can I send the acknoledge?
And how the second one can request the first one to send values?
Anybody have a complete example?
Thanks!