Currently, we use bare fields in our network packages
|
typedef struct __packet{ |
|
uint16_t type; //Tipo do pacote (p.ex. DATA | CMD) |
|
uint16_t seqn; //Número de sequência |
|
uint16_t length; //Comprimento do payload |
|
uint16_t timestamp; // Timestamp do dado |
|
char mac_address[18]; |
|
int status; |
|
const char* _payload; //Dados da mensagem |
|
} packet; |
We should start serializing our payloads into the payload field and stop using extra parameters in that struct.
Currently, we use bare fields in our network packages
wakeUP_Computer/structs.h
Lines 12 to 20 in 345abc1
We should start serializing our payloads into the
payloadfield and stop using extra parameters in that struct.