Skip to main content
NMALH
Associate II
Jan 13, 2022 6:08 AM UTC
Question

Lwip TCP Client disconnect detection. I am unable to detect if my client is disconnected from server. if my server sends the close command then i am able to detect but problem arises when the server stops abruptly or power goes down.

MCU is STM32F207VIT6 (client)

server is windows application.

LWIP library is used.

Is there any ping command?

This topic has been closed for replies.

3 replies

LCE
Principal III
Jan 13, 2022 6:33 AM UTC

Ping:

Yes, there is, and it's "processed" in icmp.c as ICMP_ECHO .

So you must have LWIP_ICMP defined to enable ping, in opt.h .

NMALH
NMALHAuthor
Associate II
Jan 13, 2022 7:02 AM UTC

already set to 1. Will you please elaborate more.

Piranha
Principal III
Jan 15, 2022 10:31 PM UTC