Initial project commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// Nathan Hinton
|
||||
// Main file for the hub node. Starting with the WIFI initialization.
|
||||
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "services/service_manager.h"
|
||||
#include "services/wifi_service.h"
|
||||
#include "services/web_service.h"
|
||||
#include "services/ota_service.h"
|
||||
|
||||
|
||||
ServiceManager services;
|
||||
|
||||
|
||||
WiFiService wifi;
|
||||
WebService web;
|
||||
OTAService ota;
|
||||
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
|
||||
services.add(&wifi);
|
||||
services.add(&ota);
|
||||
services.add(&web);
|
||||
|
||||
services.begin();
|
||||
}
|
||||
|
||||
|
||||
void loop()
|
||||
{
|
||||
services.update();
|
||||
}
|
||||
Reference in New Issue
Block a user