You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we have a Big Problem™, we should record it somewhere, or send it somewhere, if possible. Flashing a LED just doesn't cut it. Here is a proposed solution:
What to to when we detect an error:
obviously flash the LED and log an error message (already working somehow)
prepare an MQTT message with an error payload and possibly error properties
if we can send it, send it
if we can't send it, record it (and then replay it)
How to format the error message:
we SHALL have a global errors object, with one entry per error type.
the entry key MUST be the error code, so that the latest error of that type remains in the shadow
the entry value CAN be an object with nested properties. Properties differ with respect to the error type.
THIS IS A DRAFT
We are lacking an error reporting funnel.
When we have a Big Problem™, we should record it somewhere, or send it somewhere, if possible. Flashing a LED just doesn't cut it. Here is a proposed solution:
What to to when we detect an error:
How to format the error message:
we SHALL have a global
errors
object, with one entry per error type.Example
The text was updated successfully, but these errors were encountered: