I've been playing with DSF object model websocket for a while now and, after writing my own "connectors" programs, I wanted to dispatch some actions especially when there's a critical error like 'file cannot be print' or similar;
I think it would be nice to have an optional ErroCode property (string/int) in the object model Message class so that we can easily dispatch some actions based on those codes;
message EXAMPLE:
{"messages": [
{
"code": "PR1",
"content": "failed to start print, axes not homed",
"type": 2
}
]
}
but I understand that it would require a lot of work on both DCS and RepRap plus an all new documentation to write, explaining what each code means.
Anyway, I thought it could be an interesting topic to talk about.