Hi everyone,
I have modified the AWS Ethernet code for the RA8M1 board to send data to my custom server. Everything works perfectly when the data is being sent regularly — the connection is stable and the data is transmitted successfully.
However, I encounter an issue when the system remains idle (i.e., no data is sent to the server) for a certain period. After this idle period, when I attempt to send data again, I face an error: <No-Low-Level-Code>
<No-Low-Level-Code>
It seems like the connection is getting lost or timing out during the idle time. I'm looking for a solution to either keep the connection alive or re-establish it automatically before sending new data.
Has anyone faced a similar issue? What would be the best approach to handle this scenario in FreeRTOS with the AWS Ethernet stack on RA8M1?
Thanks in advance for your help!
Hii mukesh ,
Have you to to enable the below option in the free rtos config.h file it will keep the connection alive
Once enabled, the stack sends keep-alives after idle time if the remote doesn’t reply, the connection drops, and you’ll get an error on the next send/recv—letting your code re-create the socket.
you can refer this link for additional information.
Kind Regards,
GN_Renesas
GN_Renesas I have enabled this in my can please tell me how can i disconnect and crreate the socket again because when i try to disconnect my code suspends at the function sslcontextFree how can i safetly disconnect and connect again