BLE peripheral. gatt_server_service_table to start with my project?
Posted: Fri Sep 07, 2018 6:41 am
Hi esp32 expert
I'm starting my new projet based on three esp32 and their BLE module.
Purpose is two have two peripheral esp32 sensor modules that connect to a third esp32 central display module.
For peripheral connected to sensors, i wanted to use gatt_server_service_table example project to start implementing code of my sensors.
For the central display module code, i think to use the gatt_client example.
Yesterday, i flashed the gatt_server_service_table. I'm able to see ESP_GATT_DEMO peripheral with my smartphone. Via Android, i can't connect to it. If i use Nordic nRF android app, i can see much more like attribut etc. I also see in the esp32 console event occurs so i guess it works. But it is still non connected mode. I read esp32 ble doc and i know that it is possible to share data without being connected. Is it the case in this example ?
As it is a batterie project , i would like to wake up periodically the esp32 peripheral, try to connect to central. If central answer, peripheral go in running mode ( communicate with sensors and share info to central via BLE). If central is off, advertising will fail and i go back to sleep.
My questions concern the fact that, on all the training i follow on ble, it speak about peripheral, central , observer, scanner etc... In the gatt_server_service_table, i'm not sur i'm really in peripheral mode.
Do you think gatt_server_service_table example is the good soft to start this kind of architecture please?
Thanks a lot for this open general discussion on BLE.
I'm starting my new projet based on three esp32 and their BLE module.
Purpose is two have two peripheral esp32 sensor modules that connect to a third esp32 central display module.
For peripheral connected to sensors, i wanted to use gatt_server_service_table example project to start implementing code of my sensors.
For the central display module code, i think to use the gatt_client example.
Yesterday, i flashed the gatt_server_service_table. I'm able to see ESP_GATT_DEMO peripheral with my smartphone. Via Android, i can't connect to it. If i use Nordic nRF android app, i can see much more like attribut etc. I also see in the esp32 console event occurs so i guess it works. But it is still non connected mode. I read esp32 ble doc and i know that it is possible to share data without being connected. Is it the case in this example ?
As it is a batterie project , i would like to wake up periodically the esp32 peripheral, try to connect to central. If central answer, peripheral go in running mode ( communicate with sensors and share info to central via BLE). If central is off, advertising will fail and i go back to sleep.
My questions concern the fact that, on all the training i follow on ble, it speak about peripheral, central , observer, scanner etc... In the gatt_server_service_table, i'm not sur i'm really in peripheral mode.
Do you think gatt_server_service_table example is the good soft to start this kind of architecture please?
Thanks a lot for this open general discussion on BLE.