LoRa-BLE-Sensor
|
This is a library to handle the BLE services device configuration. It displays the device name, hardware version, firmware version, and battery/charger information. More...
#include "ble_device_service.h"
#include <zephyr/logging/log.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/gatt.h>
Functions | |
LOG_MODULE_REGISTER (BLE_DEVICE_SERVICE, LOG_LEVEL_INF) | |
BT_GATT_SERVICE_DEFINE (device_svc, BT_GATT_PRIMARY_SERVICE(BT_UUID_DEVICE), BT_GATT_CHARACTERISTIC(BT_UUID_DEVICE_HARDWARE_VERSION, BT_GATT_CHRC_READ, BT_GATT_PERM_READ, read_hardware_version, NULL, NULL), BT_GATT_CHARACTERISTIC(BT_UUID_DEVICE_FIRMWARE_VERSION, BT_GATT_CHRC_READ, BT_GATT_PERM_READ, read_firmware_version, NULL, NULL), BT_GATT_CHARACTERISTIC(BT_UUID_DEVICE_BATTERY_VOLTAGE, BT_GATT_CHRC_READ, BT_GATT_PERM_READ, read_battery_voltage, NULL, NULL), BT_GATT_CHARACTERISTIC(BT_UUID_DEVICE_BATTERY_TEMPERATURE, BT_GATT_CHRC_READ, BT_GATT_PERM_READ, read_battery_temperature, NULL, NULL),) | |
int | ble_device_service_init (pmic_sensor_status_t *status) |
Connect PMIC sensor status to Device BLE Service. | |
This is a library to handle the BLE services device configuration. It displays the device name, hardware version, firmware version, and battery/charger information.
int ble_device_service_init | ( | pmic_sensor_status_t * | status | ) |
Connect PMIC sensor status to Device BLE Service.
status | PMIC sensor status |