Multiple BLE Services Example
Posted: Sun Jan 17, 2021 9:58 pm
When creating a Bluetooth Low Energy server, what is the best way to create it with multiple services?
I want to have the following services:
I think it would be best to create a class for each service, but the problem is that each time BLE().gatts_register_services is called, it overwrites the previous values.
Does anyone have an example or template to follow?
Thanks
I want to have the following services:
- Files (to check the number of files and possibly transfer files)
Time (so that I can read and write)
Voltage
Proximity (rssi)
Temperature
I think it would be best to create a class for each service, but the problem is that each time BLE().gatts_register_services is called, it overwrites the previous values.
Does anyone have an example or template to follow?
Thanks