kuzjka / lighthouse-community

Power line status reporting service
0 stars 0 forks source link

added firmware for power sensor #16

Closed kuzjka closed 2 weeks ago

kuzjka commented 3 weeks ago

Added Arduino sketch for ESP8266 chip.

In the main loop an empty HTTP POST request is sent to /api/sensor/report periodically. If the request is successful, built-in led blink one time. If there is an error - led blinks 3 times. Also, debug information is printed to the serial output.

settings.h contain WiFi network credentials, server address and request rate. This file is supposed to be overridden before flashing the firmware.

This meets the minimal requirements for v 0.1 and resolves #5.