cordova-plugin-bluetoothle icon indicating copy to clipboard operation
cordova-plugin-bluetoothle copied to clipboard

Recieve TxPowerLevel from Peripheral on Android

Open arnoudcommandeur opened this issue 5 years ago • 2 comments

Hi @randdusing when I inspect the ScanResult object from an Peripheral, I want to get the TxPower. Is this only sent by iOS? And is this the same as txPowerLevel?

{ "status": "scanResult", "advertisement": "awArG05L", //Android "advertisement": { //iOS "serviceUuids": [ "180D" ], "manufacturerData": "awAvFFZY", "txPowerLevel": 0, "overflowServiceUuids": [ ], "isConnectable": true, "solicitedServiceUuids": [ ], "serviceData": { }, "localName": "Polar H7 3B321015" }, "rssi": -58, "name": "Polar H7 3B321015", "address": "ECC037FD-72AE-AFC5-9213-CA785B3B5C63" }

Hope to hear from toy, thanks again!

arnoudcommandeur avatar May 04 '20 22:05 arnoudcommandeur

Android only returns back the advertisement encoded string of byte. You'll have to parse that, but it most likely doesn't return what you need.

randdusing avatar May 07 '20 13:05 randdusing

Ok @randdusing thanks. I will investigate it further.

arnoudcommandeur avatar May 07 '20 20:05 arnoudcommandeur