Library for parsing commands for communication of MCUs
<type+len, 1 byte><checksum, 2 bytes><payload, len + 1 bytes>
<type+len, 1 byte><checksum, 2 bytes><payload, len bytes>
<device id, 1 byte><data, len bytes>
<data, len bytes>
command: 0b01
;
var: 0b10
;
array: 0b11
;
<id, 1 byte><var bytes>
<id, 1 byte><array bytes>
ttllllll
where: t - type bits; l - len bits
id of array or variable will be at first byte of payload
Max len of cmd: 1 byte(255 commands)
Min len of array/variable: 2 bytes
sum of all bytes + 1