Wifly module command mode
I have connected up the mbed to the sparkfun.com breakout board. RX TX on pins 9 & 10.
I am using the code below to try and get the wifly into command mode. But every time it just ignores me and trys to connect to its default network. I am can not see what I have done wrong. There is a typical trace from the Tera Term window below also.
Try as I might I can not get Wifly to go into command mode, it seams to ignore $$$.
Do I need to send an end line character? Is there a reason I would not get back CMD?
 
WiFly Ver 2.23, 04-26-2011 on 131C83
MAC Addr=00:06:66:13:d5:a0
Auto-Assoc roving1 chan=0 mode=NONE FAILED
*READY*
Auto-Assoc roving1 chan=0 mode=NONE FAILED
 
#include "mbed.h"
Serial pc(USBTX, USBRX);
Serial wifi(p9,p10);
int main() {
    
    pc.printf("Test Wifly!\r\n");
    while (1) 
    {
        if (pc.readable())
        {
            wifi.putc(pc.getc());
        }
        if (wifi.readable())
        {
            pc.putc(wifi.getc());
        }
    }
}
 
                    
                 
                
             
        
Wifly module command mode
I have connected up the mbed to the sparkfun.com breakout board. RX TX on pins 9 & 10.
I am using the code below to try and get the wifly into command mode. But every time it just ignores me and trys to connect to its default network. I am can not see what I have done wrong. There is a typical trace from the Tera Term window below also.
Try as I might I can not get Wifly to go into command mode, it seams to ignore $$$.
Do I need to send an end line character? Is there a reason I would not get back CMD?
#include "mbed.h" Serial pc(USBTX, USBRX); Serial wifi(p9,p10); int main() { pc.printf("Test Wifly!\r\n"); while (1) { if (pc.readable()) { wifi.putc(pc.getc()); } if (wifi.readable()) { pc.putc(wifi.getc()); } } }