CLASS2.LEVEL1.LOG
This class mirrors the CLASS1.LOG class but use a different data format with a GUID stored in the first 16 bytes of the data followed by the standard data thus offset with 16-bytes.
See CLASS2.PROTOCOL1 for more information on the data format.
VSCP_TYPE_LOG_GENERAL
General Event.
VSCP_TYPE_LOG_MESSAGE
Message for Log. Several frames have to be sent for a event that take up more then the five bytes which is the maximum for each frame. In this case the zero based index (byte 2) should be increased for each frame.
Byte | Description |
---|---|
0 | ID for event. |
1 | Log level for message. |
2 | Idx for this message. |
3-7 (511) | Message. |
A level II node can use the full 512 byte message body.
Log levels are typically
Byte | Description |
---|---|
0 | Emergency. |
1 | Alert. |
2 | Critical. |
3 | Error. |
4 | Warning. |
5 | Notice. |
6 | Informational. |
7 | Debug. |
8 | Verbose. |
but one can use any schema that makes sense for the application (or not).
VSCP_TYPE_LOG_START
Start logging.
Byte | Description |
---|---|
0 | ID for log. |
VSCP_TYPE_LOG_STOP
Stop logging.
Byte | Description |
---|---|
0 | ID for log. |
VSCP_TYPE_LOG_LEVEL
Set level for logging.
Byte | Description |
---|---|
0 | ID for log byte 0 Log level. |