Jump to content


  • Content Count

  • Joined

  • Last visited

Posts posted by PaoloIT

  1. Hello everybody,
    I need to use WDT to hardware reset CC3200.
    I tried to include driverlib/wdt.h in energy.h but when I try to use some WDT function, like WatchdogRunning, the CC3200 go to freeze...
    If I comment the code in the function and leave only "return 1;" the system freeze the same...


    Can you help me?
  2. This is my received buffer:


    new client

    POST / HTTP/1.1
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 10
    Connection: keep-alive
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5
    Accept-Language: it-it
    Accept-Encoding: gzip, deflate
    The Content-Length change with the text input but I can't find it!
  3. Hello, 
    I created a webserver on cc3200 with GET method, some text parameters and one submit button..
    Everything work fine with GET method but there is a problem that the browser save the url with parameters and the parameters are present in url so everybody can see the value.
    To avoid this I tried to use POST method in form and submit but in the receive buffer I have only "POST" message and nothing else.... 
    How can I use a POST to my webserver and read a value of parameters?



  4. Hello, 

    I've a problem with the default mysimplelink.net  web page of CC3200 launchpad.

    How can i delete it?

    I tried to format my flash with uniflash but when my system connect to my router, if write mysimplelink.net on my web browser the mysimplelink page is loaded..... 

    I hate it !!!!!




  5. Hey @@PaoloIT , it works great!


    Just one note, since you're asking us to add

    - "WiFi._initialized = false;"

    "WiFi._connecting = false;"

    before WiFi.begin(*char ssid, *char pass) every time inside the sketch, I went ahead and added the two lines into the "WiFi.begin(*char ssid, *char pass)" method inside the WiFi.cpp file instead of adding them in my sketch.


    Everything seems to work fine with that too (I hope what I did doesn't mess things up).


    To make sure nothing is broken, I tested it in the following way:

    [AP--->UDP.begin()----->Station---->UDP.begin()----->AP...]  x 10    (ten times)


    To be honest the CC3200 switched between networks faster than I could on my laptop :|

    Anyway it seems to work fine :)



    Yes, is better put they on library...

  6. Hello guys,

    I tested my fix and work fine.... 

    I tryed AP->STA, STA->AP->STA and everything work fine.

    this is the fix in wifi.cpp file in /hardware/CC3200/Libraries/WIFI.

    I added role = ROLE_STA;


    int WiFiClass::begin(char* ssid, char *passphrase)



        // If we already called begin and are already connecting

        // then return the status. This prevents sl_WlanConnect() 

        // from being called repeatedly.


        if(_connecting) {


            return status();






        // Set IP address configuration to DHCP if needed


        bool init_success = WiFiClass::init();

        if (!init_success) {

            return WL_CONNECT_FAILED;






        //initialize the simplelink driver and make sure it was a success


        sl_WlanPolicySet(SL_POLICY_CONNECTION , SL_CONNECTION_POLICY(1,1,0,0,0), 0, 0);



        //get name length and set security type to WPA

        //add passphrase and keylength to security parameters


        int NameLen = strlen(ssid);

        SlSecParams_t SecParams = {0};

        SecParams.Type = SL_SEC_TYPE_WPA;

        SecParams.Key = passphrase;

        SecParams.KeyLen = strlen(passphrase);



        //connect to the access point (non enterprise, so 5th argument is NULL)

        //also mac address parameters set as null (3rd argument)


        int iRet = sl_WlanConnect(ssid, NameLen, NULL, &SecParams, NULL);



        //return appropriate status as described by arduino wifi library

        //the WiFiClass:WiFi_status is handled by the WlanEvenHandler

        //in SimpleLinkCallbacks.cpp. However, if iRet < 0, there was an error


        if (iRet == 0) {

            sl_WlanProfileAdd(ssid, NameLen, 0, &SecParams, 0, 6, 0);

            _connecting = true;

            return status();

        } else {

            return WL_CONNECT_FAILED;




    In the firmware is necessary add 


      WiFi._initialized = false;

      WiFi._connecting = false;
    before call WiFi.begin.
    an example here:
    void TestConnectionAP(void){
      Serial.print("Attempting to connect to Network named: ");
      Serial.print("Init wifi in STA mode");
      WiFi._initialized = false;
      WiFi._connecting = false;
      while ( WiFi.status() != WL_CONNECTED) {
      Serial.println("\nYou're connected to the network");
      Serial.println("Waiting for an ip address");
      while (WiFi.localIP() == INADDR_NONE) {
      Serial.println("\nIP Address obtained");
    give me a feedback about your test.... 
  • Create New...