split parser into separate functions that handle specific commands
This commit is contained in:
2023-12-05 21:48:07 +01:00
parent bd89deceb6
commit 589f56ecbd
2 changed files with 208 additions and 155 deletions

View File

@@ -22,6 +22,7 @@
void tcp_cmd_remove_newline(char* str, size_t len);
char* tcp_cmd_remove_leading_space(char* str, size_t len);
void tcp_cmd_str_tolower(char* str);
char* tcp_cmd_get_next_token(char* input, const char* delimiters, char** next);
void tcp_cmd_init(void);
err_t tcp_cmd_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t err);