Status macro
- Post By teo
- 1 year ago
Do you know why do I get this error at this line : #define return_status(gps_data,st) (gps_data)->status = st;return st;
Here is what the compiler says :
../Core/Src/gps_parser_lib.c:87:59: error: 'gps_data' is a pointer; did you mean to use '->'?
87 | #define return_status(gps_data,st) (gps_data)->status = st;return st;
^~
I am using the STM32F767ZI microcontroller and was able to implement a webserver with an HTML/CSS/Javascript formatted webpage that can perform GCI commands and use SSI as well. The issue is that the webpage doesn't stay alive after roughly 30 seconds and after issuing a few CGI commands, the webpage fails to load and the server ultimately stops responding. I tried enabling the LWIP_HTTPD_SUPPORT_11_KEEPALIVE macro in my lwipopts.h file, but no behavioral change. I also tried to up the MEM_ALIGNMENT, MEM_SIZE and PBUF_POOL_SIZE, but still seeing the webpage lose connection over wireshark (see attached). What options do I have and what can l look into to solve the issue? Thanks!