User`s guide
RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 22
set q power 0x04 // Sets power to 3.3 V when a
// sampling event occurs
2.3.49 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 2-5. Setting this parameter causes the module
to connect to the stored remote host periodically as specified by <value>.
Default: 0
Example: set sys autoconn 5 // Module connects to host every 5 sec.
2.3.50 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. The I/O function <mask> is encoded as shown in
Tabl e 2-6.
For more details see “Setting the Alternate GPIO Functions with set sys iofunc” on
page 62.
Default: 0x0
Example: set sys iofunc 0x7 // Disables the WiFly board LEDs
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 2-5: 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.
TABLE 2-6: GPIO PIN ALTERNATE FUNCTION BITMASK
Bit Signal Name Direction Function
0 GPIO4 Output Disable the LED function so the I/O can be used as a GPIO pin.
1 GPIO5 Output Disable the LED function so the I/O can be used as a GPIO pin.
2 GPIO6 Output Disable the LED function so the I/O can be used as a GPIO pin.
3 Unused - -
4 GPIO4 Output This pin goes high after the module has associated/authenticated and has an IP
address.
5 GPIO5 Input Set this pin high to trigger a TCP connection and low to disconnect.
6 GPIO6 Output This pin goes high when the module is connected over TCP and low when discon-
nected.
Note: Bits 0 - 3 are mutually exclusive with bits 4 – 6, i.e., 0x77 is an illegal value.