Force close TCP connection

Hi,

How can I, from the MCU side, force a FIN packet to be sent from the WIZ107SR?

I have been looking around here in the forum, but haven’t been able to find any similar question.

My situation is this: I have a MCU that periodically sends heartbeats to a server. This MCU should just send the heartbeat (a small TCP packet) and then close the connection.

/Toby

Hi, Toby.
WIZ107/108SR device can forced disconnect (send FIN packet) to server when switching device mode.

  1. TCP connect and Send the heartbeat packet to server
  2. Switch to command mode using 3-byte mode switch trigger code (forced send the FIN packet)
  3. Switch to data mode using ‘EX’ command

Thanks.
Eric.