Ehsan 0 Posted February 7, 2015 Share Posted February 7, 2015 Hi, I am trying to connect my CC3200 to the home WiFi using the AP mode. I was wondering if there is any sample code for that? I have difficulty to communicate with the CC3200 webserver and send my WiFi info through the html form. I tried to use Webduino but no success. Thanks, Quote Link to post Share on other sites
Sana95 0 Posted February 10, 2015 Share Posted February 10, 2015 http://processors.wiki.ti.com/index.php/CC32xx_Quick_Start_Guide?DCMP=cc3100cc3200&HQS=cc3200launchpadstartI found this link to be pretty useful regarding the cc3200 when i started. Sample code for the startSmartConfig: taken from a forum example #include <SPI.h>#include <WiFi.h>void setup(){Serial.begin(115200);Serial.println("Starting WiFi SmartConfig");WiFi.startSmartConfig();Serial.print("Connected to SSID: ");Serial.println(WiFi.SSID());while (WiFi.localIP() == INADDR_NONE) {// print dots while we wait for an ip addresssSerial.print(".");delay(300);}Serial.println("\nIP Address obtained");Serial.print("IP Address: ");Serial.println(WiFi.localIP());}void loop(){// Noting to do} Quote Link to post Share on other sites
Ehsan 0 Posted February 11, 2015 Author Share Posted February 11, 2015 Hi Sana95, Thanks for the reply. I would like to use the AP mode and don't want to use smartconfig() to connect to my home wife. http://processors.wiki.ti.com/index.php/CC32xx_Quick_Start_Guide?DCMP=cc3100cc3200&HQS=cc3200launchpadstartI found this link to be pretty useful regarding the cc3200 when i started. Sample code for the startSmartConfig: taken from a forum example #include <SPI.h>#include <WiFi.h>void setup(){Serial.begin(115200);Serial.println("Starting WiFi SmartConfig");WiFi.startSmartConfig();Serial.print("Connected to SSID: ");Serial.println(WiFi.SSID());while (WiFi.localIP() == INADDR_NONE) {// print dots while we wait for an ip addresssSerial.print(".");delay(300);}Serial.println("\nIP Address obtained");Serial.print("IP Address: ");Serial.println(WiFi.localIP());}void loop(){// Noting to do} Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.