User manual

!
www.rovingnetworks.com Version 1.0r 9/21/2012 21
RN-WIFLYCR-UM
set sys autoconn <value>
This command sets the auto-connect timer in TCP mode, where <value> is a decimal number from 0 to 255 as shown
in Table 6. Setting this parameter causes the module to connect to the stored remote host periodically as specified by
<value>.
NOTE: To use the auto-connect timer, you must store the remote host’s IP address and port in the WiFly module
using the set ip host <address> and set ip remote <value> commands.
Table 6. Auto-Connect Timer Settings
Value
Description
0
Disable the auto-connect timer (default).
1
Connect to the stored remote host IMMEDIATELY upon power
up or when waking from sleep.
2 - 254
Connect to a stored remote host every <value> seconds.
255
Connect to a stored host IMMEDIATELY upon power up or when
waking from sleep and go back to sleep IMMEDIATELY as soon
as the TCP connection closes.
Default: 0
Example: set sys autoconn 5 // The module connects to the host every 5 seconds
set sys autosleep <value>
This command sets the auto-sleep timer in UDP mode, where <value> is a decimal number. If the protocol is set to
UDP ONLY, this timer acts as a quick sleep function. The module sleeps <value> ms after transmission of the first
UDP packet. Setting <value> to 0 disables the auto-sleep timer.
Default: 0
Example: set sys autosleep 2 // Sets the timer to sleep after 2 ms
set sys iofunc <mask>
This command sets the I/O port alternate functions, where <mask> is a hex number referring to a bit-mapped register.
For more details see Setting GPIO Direction, Alternate Functions & Disabling LEDs” on page 51.
Default: 0x0
Example: set sys iofunc 0x7 // Disables the WiFly evaluation board LEDs