The RN1723 WiFly module has two modes of operation:
- Data mode
- Command mode
Data Mode (Default)
In data mode, the module can accept incoming TCP/UDP connections or initiate outgoing TCP/UDP connections:
- The WiFly module acts as a UART-to-Wi-Fi™ data pipe
- TCP/UDP headers are stripped or added by the module (transparently) to UART application data
- Application data written to UART is sent out over Wi-Fi
- Application data received over Wi-Fi is read from UART
To configure parameters and/or view the current configuration, you must put the module into Command mode (also called Configuration mode).
Entering Command Mode
By default, the module is in data mode after power up. Sending the escape sequence "$" causes the module to enter command mode.
You must send "$" together quickly with no additional characters before or after. You must not send a carriage return (<CR>) or line feed after the "$" to enter command mode.
The module replies with "CMD" to indicate it is in command mode.
Once in command mode, you can configure the WiFly device using simple ASCII commands; each command ends with a carriage return <CR>. Most valid commands return "AOK"; invalid ones return an "ERR" description.
To exit command mode, send "exit<CR>". The module responds with "EXIT", indicating that it has exited command mode and re-entered data mode.
RN1723 contains an additional operating feature whereby you can toggle an I/O pin to alter between data and command modes. This feature saves time, reducing power consumption for battery applications.
See the WiFly Command Reference Manual for details about this feature.
Command Syntax & Structure
This page covers basic command mode syntax and structure.