parse Battery Status
Turns the flag the device reports into a BatteryStatus.
Return
Matching BatteryStatus.
Parameters
battery Status Flag
Flag as the device sent it.
Throws
when the flag is neither 0 nor 1.
Turns the flag the device reports into a BatteryStatus.
Matching BatteryStatus.
Flag as the device sent it.
when the flag is neither 0 nor 1.