Hello mqx users,
I have setup a client client socket using mqx 3.7 , to transfer data to server whenever it finds something on SD Card
I want to use KEEPALIVE feature , to let my task know that connection has been lost/reset , if it hasn't sent anything in some time , but unfortunately KEEPALIVE does not work at all.
The Algorithm is like this :
I run this task and the socket connects to server , but it does not send KEEPALIVE Probes , i am capturing packets on wireshark and i only see connection establishment packets not the keep alive .
I have some queries :
Please correct me , i might be missing some important steps to make socket options work.
Regards
Solved! Go to Solution.
keepalive time seems to be in minutes, not miliseconds.
Thank you Martin, I dont know , why i had been trying to set keepalive in miliseconds. It turns out to be in minutes . Thank you