BLE characteristic syntax question

Hello
In the Arduino reference pages at https://www.arduino.cc/reference/en/libraries/arduinoble/
it says that several values can be stored in a single characteristic.

Can anybody Please post here the correct syntax of how to declare and invoke such a characteristic?

Thank you so much!

look at the BLECharacteristic class constructor

you have various way of instantiating one, see

if you want a bunch of bytes (a struct payload for example), just use the BLECharacteristic constructor and provide the right value size.

If I understand you correct, your idea is being more explicit here:
https://giovanni-organtini.medium.com/arduino-ble-programming-4fa97506cf6a.
Marking as solution
Many thanks

Yes, I'm sure there are lots of tutorials out there.

The other option is to build a string with the data and send that. it will make the information readable easily by BLE scanning apps

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.