Using Wifly, As soon as your iOS device connects to the Ad-Hoc network with the network (and this can be through the "Settings" outside your application), your application can initiate a TCP Socket Client in the Wifly local ip ip on port 2000 (by default) , from there you can work normally, as if you were reporting through a serial terminal
Using the installed TCP socket, you can transfer it to the "CommandMode" (if you want to configure it remotely) by writing $$$ to the Socket TCP stream, or you can simply contact it by sending data to the stream.
Note. If you do not know the local IP address of your device, you can configure it via the serial interface after using "CommandMode".
Alon amir
source share