Newer
Older
while (!eth_connected) {
Serial.print("-");
delay(100);
}
initializeRoutes();
Serial.println("Started REST server");
if (Serial.available()) {
uint8_t output = NONE;
// Read command from serial
String string = Serial.readString();
string.toLowerCase();
// Only two commands
if (string == "on") {
output = ON;
} else if (string == "off") {
output = OFF;
}
}
void loop() {
// Manager loop function must be called to process incoming messages