* web-serial: added internal buffer which is transmitted every second if its fill state is different from 0

* added uptime to serial console
* time will be instantiated in ESP (was in in JS)
* fixed SerialDebug inside hmRadio.h (thx to klahus1)
This commit is contained in:
lumapu 2022-09-09 14:46:18 +02:00
parent b1fa6e0702
commit 0759bff4cd
6 changed files with 79 additions and 24 deletions

View file

@ -94,6 +94,15 @@ class app {
return String(str);
}
String getTimeStr(void) {
char str[20];
if(0 == mTimestamp)
sprintf(str, "n/a");
else
sprintf(str, "%02d:%02d:%02d ", hour(mTimestamp), minute(mTimestamp), second(mTimestamp));
return String(str);
}
inline uint32_t getUptime(void) {
return mUptimeSecs;
}