Skip to content

MiP_Battery

github-actions[bot] edited this page Aug 11, 2026 · 16 revisions

Class MiP_Battery

MiP_Battery provides one function only, to report MiP's cached battery voltage.

Table of Contents


Public Functions

readVoltage

Signature: float readVoltage()

Summary: Reads MiP's cached battery voltage.

Details:

Reads the most recent cached value of MiP's battery voltage.

Processes any pending Out-Of-Band status events to update internal cached voltage data without transmitting a new request to MiP. The cached value is updated from periodic status updates.

Returns: float Battery voltage in Volts, typically 4.0V (low) to 6.4V (fully charged). Returns 0.0f if MiP is uninitialized.


Clone this wiki locally