46 lines
541 B
C++
46 lines
541 B
C++
/// © MiroZ 2024
|
|
|
|
#include "App.h"
|
|
|
|
#include <Arduino.h>
|
|
#include "Settings.h"
|
|
|
|
#include "ProvisionSoftAP.h"
|
|
|
|
#define LED_PIN 26
|
|
|
|
App::App()
|
|
{
|
|
|
|
}
|
|
|
|
void App::init()
|
|
{
|
|
m_led = new Led(LED_PIN);
|
|
m_led->setBrightness(SETTINGS.led.brightness);
|
|
m_wifi = new Wifi();
|
|
|
|
m_led->setPulse(0, 127, 0);
|
|
ProvisionSoftAP p(80);
|
|
p.init("wellhub", "12345678");
|
|
//m_wifi->connect();
|
|
m_led->setColor(0, 0, 0);
|
|
}
|
|
|
|
void App::start()
|
|
{
|
|
while(true)
|
|
{
|
|
vTaskDelay(pdMS_TO_TICKS(10000));
|
|
}
|
|
}
|
|
|
|
void App::readSensors()
|
|
{
|
|
|
|
}
|
|
|
|
void App::reportSensors()
|
|
{
|
|
|
|
} |