Hi,
I would like to access internet through my mbot using the Wireless Module 2.4G.
I’ve been using this arduino code (I’ve already upload some arduino code directly into the mCore and made it work)
#include < SPI.h> #include < WiFi.h>
//SSID of your network
char ssid[] = "yourNetwork"; int status = WL_IDLE_STATUS; // the Wifi radio's status
void setup() { // initialize serial: Serial.begin(9600);
// scan for existing networks: Serial.println("Scanning available networks..."); scanNetworks();
// attempt to connect using WEP encryption: /* Serial.println("Attempting to connect to open network..."); status = WiFi.begin(ssid);
Serial.print("SSID: "); Serial.println(ssid);*/
}
void loop () {}
void scanNetworks() { // scan for nearby networks: Serial.println("** Scan Networks **"); byte numSsid = WiFi.scanNetworks();
// print the list of networks seen: Serial.print("SSID List:"); Serial.println(numSsid);
// print the network number and name for each network found: for (int thisNet = 0; thisNet<numSsid; thisNet++) { Serial.print(thisNet); Serial.print(") Network: "); Serial.println(WiFi.SSID(thisNet)); } }
The serial monitor output of this code is :
Scanning available networks... ** Scan Networks ** SSID List:0
Do you know if the 2.4G wireless serial is somehow locked and must be connected to the usb key ?
Can I manage to access any wifi (knowing their SSID) by using arduino and my mCore hardware ?
My robot (2.4G version):
http://store.makeblock.com/product/mbot-robot-kit
Regards,