I am trying to write a command to a BLE device. I have followed the docs and send the command in a buffer format via BLE.write(deviceId, serviceUUID, characteristicUUID, value).
I am connected and bounded to the device OK, my trouble is getting a detailed response from the peripheral. When I write the data I get a response of “OK” but should have more data.
Just curious if it is something I was doing wrong when writing to the device using the @ionic-native/ble framework. Below is the write command I am sending
BLE.write(product, serviceUUID, charID, commandBuffer).then(
result=>
{ console.log("Write succesfull line 87: " + result);
}).catch(error=>
{ console.log("Error On line 88: " + error); });