User`s guide

RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 25
2.3.52 set sys printlvl <value>
This command controls the debug print messages printed by the WiFly module on the
UART, where <value> is one of the values shown in Table 2-9. Refer to “Setting Debug
Print Levels” on page 64 for more information.
Default: 0x1
Example: set sys printlvl 2 // Sets the debug print messages to only
// critical network connection status
2.3.53 set sys output <mask> <mask>
This command sets the output GPIO pins high or low, where <mask> is a hex number
referring to a bit-mapped register. The optional <mask> sets a subset of the pins.
Default: None
Example: To toggle GPIO8, use the following commands:
set sys mask 0x21f0 // Set GPIO8 as output
set sys output 0x0100 0x0100 // Drives GPIO8 high
set sys output 0x0000 0x0100 // Drives GPIO8 low
2.3.54 set sys sleep <value>
This command sets the sleep timer, where <value> is a decimal number. The sleep
timer is the time (in seconds) after which the module goes to sleep. This timer is dis-
abled during an open TCP connection. When the TCP connection is closed, the module
counts down and puts the module to sleep after <value> seconds. Setting the value to
0 disables the sleep timer, and the module will not go to sleep based on this counter.
See “System & Auto-Connect Timers” on page 57 for more details on using system tim-
ers.
Default: 0
Example: set sys sleep 5 // Module sleeps 5 s after TCP
// connection closes
TABLE 2-9: DEBUG PRINT MESSAGE SETTINGS
Value Description
0 Quiet mode. Messages are not printed when the module wakes up or powers up.
1 Print all status messages.
2 Print only critical network access point connection level status, e.g., Associated! or Disconnect from
<SSID>.
4 Print the DHCP and IP address status information. After you have verified the module’s configuration,
you can turn off this option so that the messages do not interfere with the data.
0x4000 Change the scan format output to an MCU friendly format.
0x10 Enables the UART heartbeat message. See “UART Heartbeat Messages” on page 67 for more details.
Note: Be sure to set the wake timer before issuing the sleep timer if you are not
using an external wake up signal; otherwise, the module will never wake up.