battery_service_client_read_battery_level() function
Read battery level for service with given index. Event GATTSERVICE_SUBEVENT_BATTERY_SERVICE_LEVEL is received with battery level (unit is in percentage, i.e. 100 = full). The battery level is valid if the ATTT status is equal to ATT_ERROR_SUCCESS, see ATT errors (see bluetooth.h) for other values.
Return value
status