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.

CC3200-LAUNCHXL: Can we use ssl() function two times in the same program? I am getting "Error [-100] at line [2404] in function [set_time] Unable to set time in the device" this error if I call the ssl() in two places in same time.

Part Number: CC3200-LAUNCHXL

Hi, 

I am using ssl() function to transmit the data to the HTTPS Server. I am using this function in two places in my program. but while running this program I am getting " Error [-100] at line [2404] in function [set_time] Unable to set time in the device " error and ssl function returns -100.

what are the thigs we require to initialize before calling the ssl() function?

Help me to resolve this issue.

  • Hi Sanket,

    Are you running the ssl or http_client_demo example from the CC3200 SDK? In the ssl example, you have to set the time definitions at the top of main.c. You should also check if sl_DevSet() is returning an error code.

    Best regards,

    Sarah

  • Hi,

    I think he talk about SDK example "ssl".

    Calling two times ssl() function consecutive cannot work. Because function ssl() contain all logic including set NWP into default state. Calling two times ssl() without sl_Stop() between ssl() call will cause SimpleLink driver failure.

    As Sarah pointed it lill be better check "http_client_demo".

    Jan