BLE > How to get details from characteristics?
Posted: 07:57, 27 Aug 2015
Hi there.
I used the LightBlue app on my Mac to get the details from my heart rate tracker device.
So in my logging code, I can see that I'm getting the right service, characteristic and descriptor info.
Is there some example code that will help me get the ASCII details for the characteristic?
I used the LightBlue app on my Mac to get the details from my heart rate tracker device.
So in my logging code, I can see that I'm getting the right service, characteristic and descriptor info.
Code: Select all
LOG: Connecting...
LOG: Connected to device: MIO GLOBAL-FUSE
LOG: Reading services... (this may take some time)
LOG: service: 0000180d-0000-1000-8000-00805f9b34fb
LOG: characteristic: 00002a37-0000-1000-8000-00805f9b34fb
LOG: descriptor: 00002902-0000-1000-8000-00805f9b34fb
LOG: characteristic: 00002a38-0000-1000-8000-00805f9b34fb
LOG: service: 0000180f-0000-1000-8000-00805f9b34fb
LOG: characteristic: 00002a19-0000-1000-8000-00805f9b34fb
LOG: descriptor: 00002902-0000-1000-8000-00805f9b34fb
LOG: service: 6c721826-5bf1-4f64-9170-381c08ec57ee
LOG: characteristic: 6c722a0a-5bf1-4f64-9170-381c08ec57ee
LOG: characteristic: 6c722a0b-5bf1-4f64-9170-381c08ec57ee
LOG: characteristic: 6c722a0c-5bf1-4f64-9170-381c08ec57ee
LOG: descriptor: 00002902-0000-1000-8000-00805f9b34fb
LOG: service: 6c721838-5bf1-4f64-9170-381c08ec57ee
LOG: characteristic: 6c722a80-5bf1-4f64-9170-381c08ec57ee
LOG: characteristic: 6c722a81-5bf1-4f64-9170-381c08ec57ee
LOG: characteristic: 6c722a82-5bf1-4f64-9170-381c08ec57ee
LOG: descriptor: 00002902-0000-1000-8000-00805f9b34fb
LOG: characteristic: 6c722a83-5bf1-4f64-9170-381c08ec57ee
LOG: descriptor: 00002902-0000-1000-8000-00805f9b34fb
LOG: characteristic: 6c722a84-5bf1-4f64-9170-381c08ec57ee
LOG: descriptor: 00002902-0000-1000-8000-00805f9b34fb
LOG: service: 0000180a-0000-1000-8000-00805f9b34fb
LOG: characteristic: 00002a29-0000-1000-8000-00805f9b34fb
LOG: characteristic: 00002a24-0000-1000-8000-00805f9b34fb
LOG: characteristic: 00002a25-0000-1000-8000-00805f9b34fb
LOG: characteristic: 00002a27-0000-1000-8000-00805f9b34fb
LOG: characteristic: 00002a26-0000-1000-8000-00805f9b34fb
LOG: characteristic: 00002a28-0000-1000-8000-00805f9b34fb
LOG: characteristic: 00002a23-0000-1000-8000-00805f9b34fb
LOG: Done disconnecting from device
Is there some example code that will help me get the ASCII details for the characteristic?