#include "Arduino.h" #include #include #include #include #include #include "app.h" #include "config.h" app myApp; //----------------------------------------------------------------------------- void setup() { myApp.setup(WIFI_TRY_CONNECT_TIME); // TODO: move to HmRadio attachInterrupt(digitalPinToInterrupt(myApp.getIrqPin()), handleIntr, FALLING); } //----------------------------------------------------------------------------- void loop() { myApp.loop(); } //----------------------------------------------------------------------------- ICACHE_RAM_ATTR void handleIntr(void) { myApp.handleIntr(); }