copy BLE functions

Signed-off-by: Peter Siegmund <mars3142@users.noreply.github.com>
This commit is contained in:
2025-06-07 15:43:58 +02:00
parent 7a54c948f5
commit de4cdc2552
19 changed files with 908 additions and 16 deletions

View File

@@ -1,20 +1,26 @@
#include "beacon.h"
#include "persistence.h"
#include "remote_control.h"
void app_main(void)
{
if (initBeacon() != ESP_OK)
persistence_init("lighthouse");
if (beacon_init() != ESP_OK)
{
printf("Failed to initialize beacon");
return;
}
if (initWled() != ESP_OK)
if (wled_init() != ESP_OK)
{
printf("Failed to initialize WLED");
return;
}
if (startBeacon() != ESP_OK)
if (beacon_start() != ESP_OK)
{
printf("Failed to start beacon");
return;
}
remote_control_init();
}