Jump to content


  • Content Count

  • Joined

  • Last visited

About Icion

  • Rank
    Noob Class
  • Birthday 10/18/1985

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    South Africa
  • Interests
    IoT is my latest craze
  1. I moved over to Mac OSX and Yosimite yesterday and found a single solution from Energia that worked after none of the others worked. https://github.com/energia/Energia/issues/500 Disabling the kext worked best for me. Hope it works for you as well
  2. Have been having great strides with CC3200 and Energia, but I hit a snag, hoping someone can assist. I am attempting to use a AP server to display to surrounding available SSIDs and connect to it. Unfortunately as soon as I try to connect to the Wlan using WiFi.Begin it just fails. I have attached the test code below. When removing the WiFi.BeginNetwork(); the CC3200 connects to the WLan mentioned. But as soon as you introduce the AP it just doesn't connect. //Include Files #include <WiFi.h> #include <WiFiClient.h> #include <WiFiServer.h> #include <WString.h> //stage 1 String security = "WPA"; String ssidconnect = "SSID"; String Passstr = "PASSWORD"; char ssid[50]; char Password[50]; char wifi_name[] = "APtest"; //create mem location, allow to be change in setup char wifi_password[] = "APPassword"; //create mem location, allow to be change in setup //Create Wifi server WiFiServer server(80); void setup() { //Initialize serial and wait for port to open: Serial.begin(115200); Serial.println("Serial Terminal Initiated..."); // Initiate Wifi WiFi.init(); Serial.println("Wifi Initiated..."); // Start WiFi and create a network with wifi_name as the network name // with wifi_password as the password. Serial.print("Starting network..."); //WiFi.beginNetwork(wifi_name, wifi_password); Serial.println("done."); Serial.println("Starting webserver on port 80"); server.begin(); // start the web server on port 80 Serial.println("Webserver started!"); } void loop() { int keyIndex = 1; int stringlen = ssidconnect.length() + 1; ssidconnect.toCharArray(ssid, stringlen); stringlen = Passstr.length() + 1; Passstr.toCharArray(Password,stringlen); Serial.print("Security: "); Serial.println(security); if(security == "WEP") { Serial.println("Connecting to WEP encryption"); // print the network name (SSID); Serial.println(ssid); // Connect to WPA/WPA2 network. Change this line if using open or WEP network: WiFi.begin(ssid, keyIndex, Password); } else if (security == "WPA") { Serial.println("Connecting to WPA encryption"); // print the network name (SSID); Serial.print("SSID: "); Serial.println(ssid); Serial.print("Password: "); Serial.println(Password); // Connect to WPA/WPA2 network. Change this line if using open or WEP network: WiFi.begin(ssid, Password); } else if (security == "None") { Serial.println("Connecting to NO encryption"); // print the network name (SSID); Serial.println(ssid); // Connect to WPA/WPA2 network. Change this line if using open or WEP network: WiFi.begin(ssid); } else { Serial.println("Can't pick up encryption type"); // Couldnt find Encryption type delay(1); } while ( WiFi.status() != WL_CONNECTED) { // print dots while we wait to connect Serial.print("."); delay(300); } Serial.println("\nYou're connected to the network"); Serial.println("Waiting for an ip address"); while (WiFi.localIP() == INADDR_NONE) { // print dots while we wait for an ip addresss Serial.print("."); delay(300); } Serial.println("\nIP Address obtained"); // continue } I'd appreciate any assistance in determining how to stop the AP or just getting the Wlan to run. Thank you, Abrie
  3. Hi Guys, Robert, I need some assistance, You mentioned in (https://github.com/energia/Energia/issues/414) that an example of using AP would be to use it to connect to a WLAN. Now your ScanNetworks example works perfectly, but I'm finding that when connected as an AP the function returns 0. What would the easiest work around be? I can't imagine disconnecting as an AP to scan would be helpful. Thanks, Abrie
  4. Hi Guys, Just an update, got it working on Android smartphones. It seemed that the buffer length was too small, by increasing it to 300 it started working. i.e. char buffer[300] = {0}; My iPhone 5 however does not trigger the while (client.connected()) event, so that's a new problem on its own. Hope it helps. P.S> I also got the AP working which includes the LED toggling thanks to Energia.
  5. CC3200 LAUNCHXL v4.1 ENERGIA 0101E0013 WINDOWS 7 Hi Guys, So I just got a few CC3200 Launchpads to do some prototyping on. Ultimately I would like to be able to connect onto the Launchpad without having to first go through my router. But I digress... I've been running the SImpleWebServerWIFI sketch from Energia. It works as expected when I have my computer with Chrome accessing it, But as soon as I connect with my Android phone(4.4.2) and chrome(v39.0.2171.59) and press a button the unit freezes up. Attempting to connect to Network named: WNL108 .. You're connected to the network Waiting for an ip address . IP Address obtained SSID: WNL108 IP Address: signal strength (RSSI):0 dBm To see this page in action, open a browser to Starting webserver on port 80 Webserver started! new client GET / HTTP/1.1 Host: Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 User-Agent: Mozilla/5.0 (Linux; Android 4.4.2; D6503 Build/17.1.2.A.0.314) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.59 Mobile Safari/537.3 As I initially said I would like to be able to connect directly to my CC3200 device. Any help would be greatly appreciated
  • Create New...