Wifly close connection

how do I close a connection from code?

The code should be similar Spiserial …?

Send it the “close” command.

Doesn’t work this command

Can you elaborate on what Wifly module you are using and what command you are sending? Can you also go over how it is not working and if you are getting any feedback from the module?

i use wifly shield https://www.sparkfun.com/products/9954?

for read i use SpiSerial.read()

for frite i use SpiSerial.print()

and for close udp connection i don’t know xd

UDP is a “connectionless” protocol - there is no UDP close command (only a close for TCP). Refer to page 61 of the latest manual.