44 lines
874 B
C++
44 lines
874 B
C++
/// © MiroZ 2024
|
|
|
|
#ifndef __APP_H__
|
|
#define __APP_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "Settings.h"
|
|
#include "Led.h"
|
|
#include "Wifi.h"
|
|
#include "MqttService.h"
|
|
#include "BleService.h"
|
|
#include "Buffers.h"
|
|
#include "sensors/SensorService.h"
|
|
#include "CommandProcessor.h"
|
|
#include "AppIF.h"
|
|
|
|
class App : AppIF
|
|
{
|
|
protected:
|
|
Wifi * m_wifi = nullptr;
|
|
MqttService * m_mqtt_service = nullptr;
|
|
BleService * m_ble_service = nullptr;
|
|
SensorService * m_sensor_service = nullptr;
|
|
CircBuffer m_circ_buffer;
|
|
Led * m_led = nullptr;
|
|
CommandProcessor * m_commandProcessor = nullptr;
|
|
|
|
public:
|
|
Led * getLed() override;
|
|
CircBuffer * getBuffer() override;
|
|
CommandProcessor * getCommandProcessor() override;
|
|
|
|
public:
|
|
App();
|
|
|
|
void otaCheck();
|
|
void init();
|
|
void start();
|
|
void readSensors();
|
|
void reportSensors();
|
|
};
|
|
|
|
#endif /* __APP_H__ */ |