26 #ifndef EDGEHOG_BATTERY_STATUS_H
27 #define EDGEHOG_BATTERY_STATUS_H
void edgehog_battery_status_update(edgehog_device_handle_t edgehog_device, const edgehog_battery_status_t *battery_status)
Update battery status info.
edgehog_battery_state
Edgehog Battery state codes.
Definition: edgehog_battery_status.h:41
@ BATTERY_REMOVED
Definition: edgehog_battery_status.h:48
@ BATTERY_IDLE_OR_CHARGING
Definition: edgehog_battery_status.h:46
@ BATTERY_FAILURE
Definition: edgehog_battery_status.h:47
@ BATTERY_INVALID
Definition: edgehog_battery_status.h:42
@ BATTERY_UNKNOWN
Definition: edgehog_battery_status.h:49
@ BATTERY_CHARGING
Definition: edgehog_battery_status.h:44
@ BATTERY_DISCHARGING
Definition: edgehog_battery_status.h:45
@ BATTERY_IDLE
Definition: edgehog_battery_status.h:43
void edgehog_battery_status_publish(edgehog_device_handle_t edgehog_device)
Publish battery status info.
Definition: edgehog_battery_status.h:52
double level_percentage
Definition: edgehog_battery_status.h:54
double level_absolute_error
Definition: edgehog_battery_status.h:55
edgehog_battery_state battery_state
Definition: edgehog_battery_status.h:56
const char * battery_slot
Definition: edgehog_battery_status.h:53