Compare commits

...

3 Commits

Author SHA1 Message Date
Thomas Ballmann 50c231edcf device specs added 3 years ago
Thomas Ballmann d91b3b1d11 clean up code 3 years ago
Thomas Ballmann 52dfe427bb removed double incluce 3 years ago

@ -1,8 +0,0 @@
#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,6 +138,9 @@ 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,7 +12,6 @@ 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