Maybe I am looking at it wrong, bitwise ops is not my strongest side
I am wondering about the following.
Accessory Battery State
According to the documentation
-Bit 0 Feature supported by Keypad
-Bit 1 Keypad Battery State Critical
-Bit 2-7 reserved
I get the value 143 (10001111) from the lock
I have a keypad and I assume the battery is not critical as it is new so
-most left bit = Feature supported by Keypad
-second left bit = Keypad Battery State Critical
Is my assumption correct?
#######################################################
Critical Battery state
According to the documentation:
-Bit 0 Smart Lock Battery State Critical
-Bit 1 Charging Flag
-Bit 2-7 Smart Lock Battery in %
I get the value 128 (10000000) from the lock
The app shows battery is not critical and at 64%
So I assume
-the most right bit = Smart Lock Battery State Critical
-the second right bit = Charging Flag
-the third right bit till the most left bit = Smart Lock Battery in %
But this would mean that:
for “Accessory Battery State” bit0 would be most left
for “Critical Battery State” bit0 would be most right
I am confused