Skip to main content
Visitor II
January 13, 2022
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.

  • January 13, 2022
  • 2 replies
  • 1878 views

MCU is STM32F207VIT6 (client)

server is windows application.

LWIP library is used.

Is there any ping command?

    This topic has been closed for replies.

    2 replies

    Graduate II
    January 13, 2022

    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 .

    NMALHAuthor
    Visitor II
    January 13, 2022

    already set to 1. Will you please elaborate more.

    Graduate II
    January 15, 2022