Bluetooth Rssi Values Are Always In Dbm In All Android Devices?
I'm new to Android and my app uses Bluetooth to receive data from a small load cell amplifier. While in some devices (Samsung ones) the BT signal strength (RSSI) vary as expected (
Solution 1:
The RSSI is an 8-bit signed two's complement integer(-128 to 127). If you read the value as a byte then you will get the correct value range for any device. If you read it as an integer or a string you might end up with correct values on some devices but incorrect on some other...
200 as an 8-bit signed two's complement integer equals -56
Post a Comment for "Bluetooth Rssi Values Are Always In Dbm In All Android Devices?"