parseBatteryStatus

Turns the flag the device reports into a BatteryStatus.

Return

Matching BatteryStatus.

Parameters

batteryStatusFlag

Flag as the device sent it.

Throws

when the flag is neither 0 nor 1.