Battery service.
Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.
#include "battery.h"
Functions | |
void | bat_init_service (gatt_service_handler_t *battery_serv, uint8_t *battery_value) |
Initialize the service with its included service, characteristics, and descriptors. More... | |
at_ble_status_t | bat_primary_service_define (gatt_service_handler_t *battery_service) |
defining an initialized service More... | |
at_ble_status_t | bat_update_char_value (gatt_service_handler_t *battery_serv, uint8_t char_data) |
Function used to update characteristic value. More... | |
Variables | |
uint8_t | battery_init_value = 10 |
Initial value of the battery level characteristic value. More... | |
at_ble_connected_t | ble_connected_dev_info [MAX_DEVICE_CONNECTED] |
information of the connected devices More... | |
at_ble_char_presentation_t | presentation_format |
Presentation format of the battery level. More... | |
uint8_t battery_init_value = 10 |
Initial value of the battery level characteristic value.
Referenced by bat_init_service().
at_ble_connected_t ble_connected_dev_info[MAX_DEVICE_CONNECTED] |
information of the connected devices
at_ble_char_presentation_t presentation_format |
Presentation format of the battery level.
Referenced by bat_init_service().