#include "Arduino.h" #include #include #include #include #include #include "app.h" app myApp; //----------------------------------------------------------------------------- void setup() { // AP name, password, timeout myApp.setup("ESP AHOY", "esp_8266", 15); // TODO: move to HmRadio attachInterrupt(digitalPinToInterrupt(myApp.getIrqPin()), handleIntr, FALLING); } //----------------------------------------------------------------------------- void loop() { myApp.loop(); } //----------------------------------------------------------------------------- ICACHE_RAM_ATTR void handleIntr(void) { myApp.handleIntr(); }