Jump to content
43oh

CC3200 AP mode and connecting to the home WiFi


Recommended Posts

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, 

Link to post
Share on other sites

http://processors.wiki.ti.com/index.php/CC32xx_Quick_Start_Guide?DCMP=cc3100cc3200&HQS=cc3200launchpadstart
I 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 addresss
Serial.print(".");
delay(300);
}

Serial.println("\nIP Address obtained");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());
}

void loop()
{
// Noting to do
}

Link to post
Share on other sites

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=cc3200launchpadstart
I 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 addresss
Serial.print(".");
delay(300);
}

Serial.println("\nIP Address obtained");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());
}

void loop()
{
// Noting to do
}

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...