Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculating Tx Power Level in CoreBluetooth iOS

The page on this url shows that

The value of the characteristic is a signed 8 bit integer that has a fixed point exponent of 0.

Showing the Examples: The value 0x12 is interpreted as +18dBm The value 0xED is interpreted as -18dBm

How to calculate 0xED and get result as -18dBm?

like image 637
manojdeshmane99 Avatar asked Nov 01 '22 10:11

manojdeshmane99


1 Answers

This required simple conversion of hexadecimal to decimal values.

0xED-255=237-255=-18

0x12=18

There is nothing more to it.

like image 160
Mark Avatar answered Nov 12 '22 23:11

Mark