This program will connect to the Nordic Thingy:52 device to gather sensor data through BLE.
This is still a proof of concept to see how far the ESP32 BLE hardware and software goes...
The Nordic Thingy Notifications where not working due to this bug: nkolban/ESP32_BLE_Arduino#17
While the merge is not done to the ESP32 BLE Arduino Library we need to change the BLERemoteDescriptor.cpp file at line 151 to the new line:
From:
ESP_GATT_WRITE_TYPE_NO_RSP,
to
response ? ESP_GATT_WRITE_TYPE_RSP : ESP_GATT_WRITE_TYPE_NO_RSP,
Collect data, buffer it out, and send it to the Things Network.
I've writen a short post regarding this testing code at Workpress: https://primalcortex.wordpress.com/2018/12/06/esp32-ttgo-board-and-nordic-thingy52-sensor-device/