User manual
!
www.rovingnetworks.com Version 1.0r 9/21/2012 29
RN-WIFLYCR-UM
set wlan channel <value> <flag>
This command sets the WLAN channel, where <value> is a decimal number from 1 to 13 representing a fixed
channel and <flag> is the optional character i (meaning immediate). If you set the channel to 0, the modules performs
a scan using the SSID for all the channels set in the channel mask. The i flag allows you to create a temporary AP
mode setup without having to reboot or save the settings. See Example 2.
Default: 0
Example 1: set wlan channel 2 // Set the WLAN channel to 2
Example 2: set wlan channel 1 i
set wlan join 7
set ip address 1.2.3.4
set ip gateway 1.2.3.4
set ip netmask 255.255.255.0
set ip dhcp 4 // Use DHCP server
join <SSID> // Module goes into AP mode
set wlan ext_antenna <value>
This commands determines which antenna is active, where <value> is 0 (use the chip antenna) or 1 (use the U.FL
connector). Only one antenna is active at a time and the module must be power cycled after changing the antenna
setting.
NOTE: This command applies only to the RN-131 module; it is not applicable to the RN-171. If you send this
parameter to the RN-171, it issues an error message ERR: Bad Args.
Default: 0
Example: set wlan ext_antenna 1 // Use the U.FL antenna
!