BLE_HOGPS_SendBatteryLevel
C
uint16_t BLE_HOGPS_SendBatteryLevel(uint16_t connHandle);
Description
Sends the battery level of a HID device using the BLE Battery Service.
Parameters
Parameter | Description |
---|---|
[in] connHandle | The connection handle associated with the connection. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | The battery level was successfully sent. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | The parameters provided are invalid. |