requestBatteryState

abstract fun requestBatteryState(callback: (batPercent: Int) -> Unit): Boolean

Sends a single request to receive to controller battery percentage

Return

true if the request can be sent

Parameters

callback

a callback function to receive back the async battery request result