02-12-2020, 08:48 AM
(02-11-2020, 05:12 PM)Dominik Dorsel Wrote: Thank you Dominik, the new code works great!
thank you for reporting this bug. I checked the example and realized that there was no "Descriptor" at the BLE Server. If you are not familiar with Bluetooth Low Energy and you are in interested in the background:
To receive the newest data from a microcontroller phyphox wants to get a notification (at least in this example). This notification service needs to be requested by the smartphone (or any other BLE device you are using) . This request is stored in the so called descriptor. If you want notifications - the value in the descriptor is 1 if not its 0.
I just changed a few things in the example:
- added the missing descriptor
- calculated voltage with the analog-digital converter value and used a "new" feature of the esp32 library to send a float value much more comfortable
Propably this problem occurs due to the the much older Bluetooth library I used when this example was created. However, we are also currently working on a library (for the new bluetooth-capable Arduino Nano Series & ESP32) to make the data transfer much more comfortable & user friendly!
You can find the updated version in our wiki:
https://phyphox.org/wiki/index.php?title...ed_sensors