Compare commits

..

No commits in common. '50c231edcf453fd87e0a7018b367b3f48e5b4802' and 'aeb36b69dc80c9edb827f6595ee80020bcb39b24' have entirely different histories.

@ -0,0 +1,8 @@
#ifndef TOOLS_H
#define TOOLS_H
#define EVERY_N_SECONDS(t) for (static uint16_t _lasttime; \
(uint16_t)((uint16_t)millis() - _lasttime) >= (t * 1000); \
_lasttime += (t * 1000))
#endif

@ -138,9 +138,6 @@ void setupApp()
doc["device"]["heap"]["total"] = ESP.getHeapSize();
doc["device"]["heap"]["free"] = ESP.getFreeHeap();
doc["device"]["specs"]["cpu"] = ESP.getCpuFreqMHz();
doc["device"]["specs"]["flash"] = ESP.getFlashChipSize();
doc["playlist"]["current"] = playlistGetCurrentFace();
doc["playlist"]["remaining"] = (playlistGetRemainingTimeMs() / 1000) + 3; // + face rendering time 3s

@ -12,6 +12,7 @@ DNSServer dnsServer;
/* Soft AP network parameters */
IPAddress apIP(192,178,4,1);
#include <DNSServer.h>
bool initClientMode(const char *ssid, const char *password);
void initAPMode();

Loading…
Cancel
Save