Command Mode

Once the module is placed into command mode, you are able to get/set a variety of configuration settings via specially formatted ASCII text messages on the UART interface.

Please see the WiFly Command Reference Manual for all details about specific commands and options.

Configuration Settings

Commands are broken into several configuration categories. They are identified by the following top-level ASCII keywords:



  • Configuration settings are stored in the module's flash memory
  • After changing a configuration setting, the command "save" must be entered to save the changes to NVM
  • Many changes require a reboot to take effect

Command Structure

Most WiFly commands have the following structure:

"<Action Keyword> <Category Keyword> <Category Option> <Value>"

For example, the following command configures the SSID of the AP that the module is to associate with:

set wlan ssid IRF2111_1

Some commands are much simpler. For example, the following command returns the MAC address of the module:

get mac

The following table shows the common Action Keywords available:


Command Rules/Syntax

  • Commands are case-sensitive
  • Spaces are not allowed, substitute $ for the space, for example
"MY NETWORK" must be entered as "MY$NETWORK"
  • Shorthand notation is available, per the following examples
set uart baudrate 115200 // valid
set uart b 115200        // valid
set u b 115200           // valid
s uart baudrate 115200   // invalid
© 2017 Microchip Technology, Inc.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.