Command Mode

Once the module is placed into Command mode, you are able to get or set a variety of configuration settings via specially formatted ASCII text messages on the Universal Asynchronous Receiver Transmitter (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 top-level ASCII keywords shown in Figure 1:

command-category-identifiers.png
Figure 1

Note:

  • 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 table in Figure 2 shows the common Action Keywords available:

action-keywords.png
Figure 2

Command Rules/Syntax

  • Commands are case-sensitive.
  • Spaces are not allowed. Substitute "$" for spaces. 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
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
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.