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.

CCS/CC3200-LAUNCHXL: Wi-Fi forum

Part Number: CC3200-LAUNCHXL


Tool/software: Code Composer Studio

hi, i m working with HTTP server application in STATION MODE.  

i have copies required part of code from WLAN_STATION application to work my HTTP server application in sta mode only and also added some html files from OOB application for reading the temperature sensor.

i m successful in getting the device in sta mode and accessing the temperature reading and controlling the led, but i also want to read other parameters like IP address, password and security, and other parameters

whose tokens are already present in the about.html and param_config.html files.and these parameters are not seen on browser when run the application.

i have read lots of article, about that predefined tokens are handled by NWP and they are not handle by SimpleLinkHttpServerCallback() function, so we should not pass them.

so as in the about.html file run in browser why i m not getting to see ip address and other parameters.

Please Help.

  • Hi Saddam,

    What tokens are you trying to use? Some parameters are specific to when the device is in station or AP mode. Be sure you are using the correct one to read the device's IP address. There are no GET tokens that allow you to read a WLAN password though, only the SSID and security type of stored profiles.

    Best regards,

    Sarah

  • Hi Sarah,

                   I m using 'STA_IP_ADDRESS' , which has token value  __SL_G_N.A , as it is a predefined token it will be handle by NWP,  i should just add it in the html file, which is already added in param_about.html, then why can't i see the value in browser.

    Best Regards,

    Saddam

  • Hi Saddam,

    It looks like that token is grabbing the default static IP address. You can work around it by adding a custom token that calls sl_NetCfgGet(SL_IPV4_STA_P2P_CL_GET_INFO, ...) in your application handler.

    Best regards,

    Sarah