Do a WLOG for start and stop is not a hard, this info is already sent on the serial port so it is just a question to send in the wlog window.
Include the time, I could just take the time/date from the web browser and show it for each message printed.
Anything helpful would be a welcome improvement, Francesco.
To be honest, I guessed the browser wlog window might be an issue, cos all contents would be lost on browser re-connection anyway.
But anything the script can send to the wlog window could also be saved to a variable or file, so even if unable to display in the browser, it would be available later, even after a reboot.
I've actually got an Annex LogServer where devices can log time-stamped messages to, which also doubles as the network TimeServer and WatchServer... it being more optimal for the WatchServer to periodically send a Watch instruction to prevent watchdog timer resets of all listening devices rather than have them all keep pinging.
But now I see the browser
Stop feedback message problem from your developers eyes - clicking
Start or
Stop in the browser will cause an appropriate wifi instruction to be sent
back to the device firmware to actually start or stop the script running... but how can the firmware make that status info (
plus local esp time) available to the script.
A possible solution:
Could a special
Wlog$ variable (
similar to HtmlEventVar$) be used to hold the last wlog message that was sent to the browser ?
The variable probably already exists for wlog messages anyway, so might just be a matter of making it accessible.
Perhaps this could allow OnError to catch and handle a
Stop message as if it was an error, plus similarly any other time-stamped wlog
error messages.