User`s guide

RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 40
2.6 ACTION COMMANDS
The action commands allow you to enter and exit command mode, join networks, etc.
Except where noted, these commands do not have any parameters.
2.6.1 $$$
You use this command to enter command mode. You must type $$$ together quickly
with no additional characters before or after. You must not type a carriage return (<cr>)
after the $$$ to enter command mode. The module replies with CMD to indicate it is in
command mode. There is a 250-ms buffer before and after the $$$ escape sequence.
If characters are sent before or after the escape sequence within this 250-ms interval,
the WiFly module treats them as data and passes them over the TCP or UDP socket,
and the module will not enter command mode.
If you want to use different characters to enter command mode (not $$$), you can set
the character to use with the set comm $ <char> command.
Example: $$$ // Enter command mode
2.6.2 apmode <bssid> <channel>
This command creates a custom soft AP network where <bssid> is the broadcast SSID
and the <channel> is the channel on which the soft AP network is created. The <bssid>
and <channel> parameters are optional.
If no parameters are specified, the module:
Uses the string stored with the set opt device_id <string> command and
appends -xy, where xy is the last byte of the module’s MAC address as the SSID.
Creates the soft AP network on channel 1.
Example: apmode MyNetwork 11 // Creates a soft AP network on channel
// 11 with SSID MyNetwork
2.6.3 close
This command disconnects a TCP connection.
Example: close // Close the TCP connection
2.6.4 exit
This command exits command mode. After leaving command mode, the module res-
ponds with EXIT.
Example: exit // Leave command mode
Note: This command does not survive power cycling. After a power cycle, the
module behaves according to the wireless join policy determined by the set
wlan join <value> command.