I am implemented connecting heartrate sensor with another API (@ionic-nativ/bluetooth-le) successful. Now I try implementing connecting the same heartrate sensor with your API on Raspberry Pi. Connecting and start notification works well. But I don't know how I must interpret the incoming data. In "@ionic-native/bluetooth-le" there is a function "encodeStringToBytes(string): Uint8Array" (the incoming data are strings ). Then I can interpret the Uint8Array as described in Bluetooth specification.
Your interface deliver "Buffer". I don't know, how I must interpret this. Can you help me?
I am implemented connecting heartrate sensor with another API (@ionic-nativ/bluetooth-le) successful. Now I try implementing connecting the same heartrate sensor with your API on Raspberry Pi. Connecting and start notification works well. But I don't know how I must interpret the incoming data. In "@ionic-native/bluetooth-le" there is a function "encodeStringToBytes(string): Uint8Array" (the incoming data are strings ). Then I can interpret the Uint8Array as described in Bluetooth specification. Your interface deliver "Buffer". I don't know, how I must interpret this. Can you help me?