Hello,
I have some trouble using @awesome-cordova-plugins/ble package with ionic.
I send a string (std:string) over a BLE connection using a ESP32.
The code works properly, I have notification with my ionic app but I’m not able to convert the ArrayBuffer to a string
I’ve used the function from the documentation
this.dataFromDevice = String.fromCharCode.apply(null, new Uint8Array(buffer));
console.log( this.dataFromDevice);
But I cannot display the I send.
Does anybody have some example using this cordova / capacitor plugin in order to receive notification from BLE in string ?
Thanks in advance.