LoRa-BLE-Sensor
Loading...
Searching...
No Matches
Macros | Functions
ble_device_service.h File Reference

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 "sensor_pmic.h"
Include dependency graph for ble_device_service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BT_UUID_DEVICE_VAL   BT_UUID_128_ENCODE(0xf983f80d, 0x277a, 0x423a, 0xa122, 0xa37302ff7c90)
 
#define BT_UUID_DEVICE_NAME_VAL   BT_UUID_128_ENCODE(0xf983f80d, 0x277a, 0x423a, 0xa122, 0xa37302ff7c91)
 
#define BT_UUID_DEVICE_HARDWARE_VERSION_VAL   BT_UUID_128_ENCODE(0xf983f80d, 0x277a, 0x423a, 0xa122, 0xa37302ff7c92)
 
#define BT_UUID_DEVICE_FIRMWARE_VERSION_VAL   BT_UUID_128_ENCODE(0xf983f80d, 0x277a, 0x423a, 0xa122, 0xa37302ff7c93)
 
#define BT_UUID_DEVICE_BATTERY_PERCENT_VAL   BT_UUID_128_ENCODE(0xf983f80d, 0x277a, 0x423a, 0xa122, 0xa37302ff7c94)
 
#define BT_UUID_DEVICE_BATTERY_VOLTAGE_VAL   BT_UUID_128_ENCODE(0xf983f80d, 0x277a, 0x423a, 0xa122, 0xa37302ff7c95)
 
#define BT_UUID_DEVICE_BATTERY_CURRENT_VAL   BT_UUID_128_ENCODE(0xf983f80d, 0x277a, 0x423a, 0xa122, 0xa37302ff7c96)
 
#define BT_UUID_DEVICE_BATTERY_TEMPERATURE_VAL   BT_UUID_128_ENCODE(0xf983f80d, 0x277a, 0x423a, 0xa122, 0xa37302ff7c97)
 
#define BT_UUID_DEVICE   BT_UUID_DECLARE_128(BT_UUID_DEVICE_VAL)
 
#define BT_UUID_DEVICE_NAME   BT_UUID_DECLARE_128(BT_UUID_DEVICE_NAME_VAL)
 
#define BT_UUID_DEVICE_HARDWARE_VERSION   BT_UUID_DECLARE_128(BT_UUID_DEVICE_HARDWARE_VERSION_VAL)
 
#define BT_UUID_DEVICE_FIRMWARE_VERSION   BT_UUID_DECLARE_128(BT_UUID_DEVICE_FIRMWARE_VERSION_VAL)
 
#define BT_UUID_DEVICE_BATTERY_PERCENT   BT_UUID_DECLARE_128(BT_UUID_DEVICE_BATTERY_PERCENT_VAL)
 
#define BT_UUID_DEVICE_BATTERY_VOLTAGE   BT_UUID_DECLARE_128(BT_UUID_DEVICE_BATTERY_VOLTAGE_VAL)
 
#define BT_UUID_DEVICE_BATTERY_CURRENT   BT_UUID_DECLARE_128(BT_UUID_DEVICE_BATTERY_CURRENT_VAL)
 
#define BT_UUID_DEVICE_BATTERY_TEMPERATURE   BT_UUID_DECLARE_128(BT_UUID_DEVICE_BATTERY_TEMPERATURE_VAL)
 

Functions

int ble_device_service_init (pmic_sensor_status_t *status)
 Connect PMIC sensor status to Device BLE Service.
 

Detailed Description

This is a library to handle the BLE services device configuration. It displays the device name, hardware version, firmware version, and battery/charger information.

Author
Tyler Garcia
Version
0.1
Date
2025-05-06

Function Documentation

◆ ble_device_service_init()

int ble_device_service_init ( pmic_sensor_status_t status)

Connect PMIC sensor status to Device BLE Service.

Parameters
statusPMIC sensor status
Returns
int 0 if successful connection, < 0 if unsuccessful