The RN1723 WiFly module has two modes of operation, Data mode and 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 Universal Asynchronous Receiver Transmitter (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.
Command Mode
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
The "Command Mode" page covers basic Command mode syntax and structure.