Hi I am trying to send sensor orientation in quaternions (from a BNO055 sensor) over BLE. From reading the CurieBLE reference page to be efficient I want to send all 4 double components (qW,qX,qY,qZ) as a string. this is also advantageous for me on the on the client end of my bluetooth connection because it is easier to convert string to float than vice versa. The problem is that because each quaternion component could be 5 characters ("-0.00") all four together with commas this string could be too large for the BLE 20 byte limit.
So my idea is now to send them as two seperate strings.
But the real question I have is how can you define a characteristic as a string using the ArduinoBLE library? I noticed that BLECharCharacteristic is a keyword but not BLEStringCharacteristic. If anyone knows any info about how to do this or has tips or a better way to send out orientation over BLE I would really appreciate it.