Commit 6da82941 authored by Eric Duminil's avatar Eric Duminil
Browse files

Trying API

parent 9edbc85a
......@@ -67,11 +67,14 @@ namespace web_server {
}
void initialize() {
Serial.print("HELLO : ");
Serial.println(ampel.sensorId);
iotWebConf = new IotWebConf(ampel.sensorId, &dnsServer, &http, HTTP_PASSWORD); // So that sensorId is defined.
const int ONBOARD_LED_PIN = 2;
# ifdef ESP8266
iotWebConf->setStatusPin(ONBOARD_LED_PIN, LOW);
# else
iotWebConf->setStatusPin(ONBOARD_LED_PIN, HIGH);
# endif
//TODO: Disable AP if WiFi connects
//TODO: Add callbacks
//TODO: Add LED effects
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment