[OpenTRV-dev] ErrorReport

Damon Hart-Davis dhd at exnet.com
Sat Jan 7 17:41:17 GMT 2017


Hi,

Some of you that are interested in potentially looking after fleets of IoT devices may be interested in a boring new header file in OTRadioLink:

https://github.com/opentrv/OTRadioLink/blob/master/content/OTRadioLink/utility/OTV0P2BASE_ErrorReport.h

It’s a lightweight error reporting mechanism that uses the existing JSON stats channel.

Here were the first log entries actually using it, warning me of a valve tracking warning (that was automatically recoverable from):

[ "2017-01-07T15:07:33Z", "", {"@":"E091B7DC8FEDC7A9","+":5,"err":-10,"T|C16":293,"O":2} ]
[ "2017-01-07T15:11:31Z", "", {"@":"E091B7DC8FEDC7A9","+":9,"T|C16":297,"err":-10,"L":47} ]
[ "2017-01-07T15:16:25Z", "", {"@":"E091B7DC8FEDC7A9","+":14,"gE":0,"err":-10,"T|C16":311} ]

Log data don’t get more exciting than that, do it!  B^>  B^>

Note that the errors ‘expire’ after a little while to save bandwidth, but with relatively little chance of being missed.

Other warnings/errors that could be added would be such things as failing sensors, low battery, etc.

Rgds

Damon

PS. Don’t forget the new forum over at https://forum.myradbot.com/



More information about the OpenTRV-dev mailing list