eddystone协议定义TxPower遵循规范https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.tx_power_level.xml&u=org.bluetooth.characteristic.tx_power_level.xml
但是如何使用该范围将值0xDF转换为dbm?
另外,我认为0x12为+18且0xEE为-18没有任何关系。
答案 0 :(得分:2)
有一个名为Two's complement
的简单关系0xDF = -33dbm
希望它有所帮助。
更新: https://www.mathsisfun.com/binary-decimal-hexadecimal-flash.html