mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 10:50:40 +00:00
20 lines
717 B
C
20 lines
717 B
C
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
|
|
/**
|
|
* Common lib functions for all platforms that have bluetooth
|
|
*/
|
|
|
|
#define MESH_SERVICE_UUID "6ba1b218-15a8-461f-9fa8-5dcae273eafd"
|
|
|
|
#define TORADIO_UUID "f75c76d2-129e-4dad-a1dd-7866124401e7"
|
|
#define FROMRADIO_UUID "2c55e69e-4993-11ed-b878-0242ac120002"
|
|
#define FROMNUM_UUID "ed9da18c-a800-4f66-a670-aa7547e34453"
|
|
|
|
// NRF52 wants these constants as byte arrays
|
|
// Generated here https://yupana-engineering.com/online-uuid-to-c-array-converter - but in REVERSE BYTE ORDER
|
|
extern const uint8_t MESH_SERVICE_UUID_16[], TORADIO_UUID_16[16u], FROMRADIO_UUID_16[], FROMNUM_UUID_16[];
|
|
|
|
/// Given a level between 0-100, update the BLE attribute
|
|
void updateBatteryLevel(uint8_t level); |