Packet types

Each packet always starts with a message type (BYTE), which can be one of the following:

Depending on the type, the packet have different contents and format.