mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
implement frame header parising for wifi interface
This commit is contained in:
parent
90d1e87ba1
commit
ed263b0727
2 changed files with 86 additions and 6 deletions
|
|
@ -12,11 +12,18 @@ class SerialWifiInterface : public BaseSerialInterface {
|
|||
WiFiServer server;
|
||||
WiFiClient client;
|
||||
|
||||
struct FrameHeader {
|
||||
uint8_t type;
|
||||
uint16_t length;
|
||||
};
|
||||
|
||||
struct Frame {
|
||||
uint8_t len;
|
||||
uint8_t buf[MAX_FRAME_SIZE];
|
||||
};
|
||||
|
||||
FrameHeader* received_frame_header = NULL;
|
||||
|
||||
#define FRAME_QUEUE_SIZE 4
|
||||
int recv_queue_len;
|
||||
Frame recv_queue[FRAME_QUEUE_SIZE];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue