UWB-Tracking
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
BleConfigLoader Class Reference

Allowes to manage the settings received via BLE and to mirror them to the EEPROM. More...

#include <ble_config_loader.h>

Public Member Functions

 BleConfigLoader ()
 Constructor to create a BleConfigLoader instance. More...
 
 ~BleConfigLoader ()
 Destructor to clean up resources. More...
 
void save_config_to_eeprom ()
 Save configuration settings to EEPROM. More...
 
void load_config_from_eeprom ()
 Load configuration settings from EEPROM. More...
 
void save_config_to_ble ()
 Save configuration settings to BLE. More...
 
uint8_t load_config_from_ble ()
 Load configuration settings from BLE. More...
 
void send_position (coordinate own_position)
 Send position data over BLE. More...
 
void print_config ()
 Print loaded configuration settings to Serial. More...
 

Private Attributes

BleServer my_server
 BLE server for communication. More...
 
coordinate landmarkAddresses [NUM_LANDMARKS]
 Array to store landmark positions. More...
 

Detailed Description

Allowes to manage the settings received via BLE and to mirror them to the EEPROM.

Constructor & Destructor Documentation

◆ BleConfigLoader()

Constructor to create a BleConfigLoader instance.

◆ ~BleConfigLoader()

~BleConfigLoader ( )
inline

Destructor to clean up resources.

Member Function Documentation

◆ load_config_from_ble()

uint8_t load_config_from_ble ( )

Load configuration settings from BLE.

Returns
1 if successful, 0 otherwise.

◆ load_config_from_eeprom()

void load_config_from_eeprom ( )

Load configuration settings from EEPROM.

◆ print_config()

void print_config ( )

Print loaded configuration settings to Serial.

◆ save_config_to_ble()

void save_config_to_ble ( )

Save configuration settings to BLE.

◆ save_config_to_eeprom()

void save_config_to_eeprom ( )

Save configuration settings to EEPROM.

◆ send_position()

void send_position ( coordinate  own_position)

Send position data over BLE.

Parameters
own_positionThe coordinates to send.

Member Data Documentation

◆ landmarkAddresses

coordinate landmarkAddresses[NUM_LANDMARKS]
private

Array to store landmark positions.

◆ my_server

BleServer my_server
private

BLE server for communication.


The documentation for this class was generated from the following files: