This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF-LAUNCHXL: HTTP Server won't load after WiFi Provisioning in STA mode

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF, UNIFLASH

Hi. 

I´m using the code fo the "network terminal" example to manually provision WiFi to my CC3220SF

The function I'm using is "cmdWlanConnectCallback" in the file wlan_cmd.c 

the provisioning starts by setting the device in  ROLE_STA and it finnished successfully. At the end it shows the IP assigned by the router. 

now. try to load the web pages in the HTTP Server using the IP but it doesn't work. 

How can I make sure that the HTTP server is working right after provision WiFi manually?

thanks

  • Hello Pablo,

    What if you try to simply connect without provisioning it or changing the code example?

    What SDK version are you using?

    Regards,

    Shlomi

  • Hi Shlomi

    SDK 4.20.00.07

    Let's make it simple to understand my issue and question

    this is what happens:

    1. I download and run the network terminal code "AS IS" no changes in the code. 
    2. use the terminal  to connect the device to my local WiFI network using: wlanconnect -s "demoAP" -t WPA/WPA2 -p "password"
    3. as a result the device has now an IP assigned: 192.68.0.24
    4. I use that IP to go to a browser and try to load the pages in the HTTP Server, but it never loads anything. It's like the HTTP server is not working 

    What I would like to implement, once I get to make this work is the following app:

    1. in the code, manually connect to wifi network. Or add profile, whatever works. 
    2. Provide an IP for the device within that network
    3. Use that IP to access a web page in the HTTP Server. That page needs internet connection since it will ping external websites 

    Any ideas why the HTTP Server IS NOT WORKING after manually connecting to a wifi network in STA mode?

    thanks

  • Strange,

    I checked the same on my LaunchPad and it works as-is out of the box.

    The HTTP server should be enabled via the Uniflash when you program the device.

    Can you verify it?

    It is under Advanced option. Go to the Network Applications and see if HTTP server is checked or not.

    Regards,

    Shlomi

  • Hi Shlomi

    thanks for your answer. I rebooted my router and the issue is now solved. 

    I checked  all the configurations they were correct. then I thought there may be a problem with my router. 

    I rebooted my router and now the device acquires a different IP and the webpages inside the device  HTTP Server are showing up

    many thanks

    -Pablo