How to use ESP32 as server to send data of a sensor through its bluetuth
Posted: Fri Dec 29, 2017 11:42 pm
Hi,
I am trying to send data of an accelorometer through bluetooth of ESP32 to an android cellphone. My knowledge about blueooth is so basic. According to my undrestanding from my studying about bluetooth BLE, here ESP32 acts as server and cellphone is the client.
My question is that to reach this goal which one of the available examles in esp_idf is more suitable to use? Since I see both examples named "ble_spp_server" and "gatt_server", and I don't undrestand which one should I use for this purpose?
I appreciate any answer.
I am trying to send data of an accelorometer through bluetooth of ESP32 to an android cellphone. My knowledge about blueooth is so basic. According to my undrestanding from my studying about bluetooth BLE, here ESP32 acts as server and cellphone is the client.
My question is that to reach this goal which one of the available examles in esp_idf is more suitable to use? Since I see both examples named "ble_spp_server" and "gatt_server", and I don't undrestand which one should I use for this purpose?
I appreciate any answer.