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/LAUNCHCC3220MODASF: cc3220MODASF using httpget and provisioning example

Part Number: LAUNCHCC3220MODASF

Tool/software: Code Composer Studio

hi,

i am using cc3220modasf SDK "simplelink_cc32xx_sdk_2_10_00_04"

I'm trying to use httpget example and provisioning example together.

My purpose,

Sending wifi SSID_NAME and SECURITY_KEY to the device with mobile application.

There are 2 tasks for this in my code. 

1- provisioningTask

2-httpTask

Successfully executes 1st task operation and when wifi connection is established I'm sending semaphore to task 2.

When my 2nd task starts running I get the following errors

"Error! code = -2006, desc = httpTask: connect failed"

"Error! code = -3021, desc = httpTask: send failed"

my screenshot:

Note: If I don't implementation provisioning then my http code will work.

Note 2: I could not find an answer in this title 

Can you help me ? 

  • Hi,

    You need to understand what is the difference between the working case (no provisioning task) and the non-working case.

    Seems that you fail on error -3021 which is no request header found.

    Maybe it is got corrupted with the provisioning implementation.

    Anyway, what i suggest is to place a break point where this error is triggered (look for HTTPClient_ENOTABSOLUTEURI and capture what URI you are using in both cases. I believe it should be different.

    Shlomi

  • This problem is solved as follows.

    If I add these lines of code , my problem is solved

    "

    sl_WlanProvisioning(SL_WLAN_PROVISIONING_CMD_STOP,0 , 0, NULL, (uint32_t)NULL);

    SlNetIf_init(0);
    SlNetIf_add(SLNETIF_ID_1, SLNET_IF_WIFI_NAME, (const SlNetIf_Config_t *)&SlNetIfConfigWifi, SLNET_IF_WIFI_PRIO);

    SlNetSock_init(0);
    SlNetUtil_init(0);

    "

    I have another question 

    -How can I get the signal strength of wifi networks?

  • My problems are solved. Thank you for your help

  • Thanks for updating.

    Basically you can always get it via the scan network list (but also the surrounding APs).

    However, you can use the following procedure that is usually used in transceiver mode.

    sl_WlanRxStatStart();  // set statistics mode

    sl_WlanRxStatGet(&rxStat,0);

    sl_WlanRxStatStop();

    Shlomi