UWB-Tracking
Loading...
Searching...
No Matches
ble_config_loader.h
Go to the documentation of this file.
1#pragma once
2
8#include <datatypes.h>
9#include <ble-server.h>
10#include <EEPROM.h>
11#include <ArduinoJson.h>
12
18{
19public:
24
29
34
39
43 void save_config_to_ble();
44
49 uint8_t load_config_from_ble();
50
55 void send_position(coordinate own_position);
56
60 void print_config();
61
62private:
65
66};
Bluetooth Server Class Definition.
Allowes to manage the settings received via BLE and to mirror them to the EEPROM.
Definition: ble_config_loader.h:18
uint8_t load_config_from_ble()
Load configuration settings from BLE.
Definition: ble_config_loader.cpp:41
~BleConfigLoader()
Destructor to clean up resources.
Definition: ble_config_loader.h:28
void save_config_to_eeprom()
Save configuration settings to EEPROM.
Definition: ble_config_loader.cpp:9
BleConfigLoader()
Constructor to create a BleConfigLoader instance.
Definition: ble_config_loader.cpp:3
void save_config_to_ble()
Save configuration settings to BLE.
Definition: ble_config_loader.cpp:75
BleServer my_server
BLE server for communication.
Definition: ble_config_loader.h:63
coordinate landmarkAddresses[NUM_LANDMARKS]
Array to store landmark positions.
Definition: ble_config_loader.h:64
void print_config()
Print loaded configuration settings to Serial.
Definition: ble_config_loader.cpp:103
void load_config_from_eeprom()
Load configuration settings from EEPROM.
Definition: ble_config_loader.cpp:26
void send_position(coordinate own_position)
Send position data over BLE.
Definition: ble_config_loader.cpp:96
Represents a Bluetooth Server for ESP32.
Definition: ble-server.h:37
Defines custom data types used in the UWB device code.
#define NUM_LANDMARKS
Definition: datatypes.h:8
Definition: datatypes.h:15