Please enable JavaScript.
Coggle requires JavaScript to display documents.
PACKET, Packing porcess, Unpacking process, Unpacking process, Packing…
-
-
Packing porcess
Create variables
Userdata userdata;
Packet pk;
uint8_t *pbuf;
Init userdata
Somthing user-defined
Init pk
pk.header = 0xAA;
pk.command = 0x01;
- 1 more item...
Unpacking process
Create variables
Userdata userdata;
Packet pk;
uint8_t *pbuf;
Init pk
pk.data = userdata;
Recv pbuf
unpacking...
pk.header = *(pbuf++);
- 1 more item...
Unpacking process
Create variables
userdata
packet
arraybuffer
Init packet
set *data (userdata)
Recv pbuf
unpacking...
arraybuffer => packet
- 1 more item...
Packing porcess
Create variables
userdata
packet
arraybuffer
Init userdata
Somthing user-defined
Init packet
set header
set command
- 1 more item...
-
-
-
-
-
-
-
-
-