My customer is getting an error -100 when trying to connect in secure more. Socket.h does not have that error code - could you please describe it and tell me when it should be expected?
Thank you!
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.
My customer is getting an error -100 when trying to connect in secure more. Socket.h does not have that error code - could you please describe it and tell me when it should be expected?
Thank you!
Hi Ben,
here is the code snippet along with the comment on where the error is returned - thank you!
if (status == 0) { status = connect(tmpSkt, (struct sockaddr *)&address, sizeof(address)); <<< -100 is returned by connect() API if (status < 0) { returnStatus = WIFI_PLATFORM_STATUS_SOCKET_CONNECT_FAILURE; if (tmpSkt >= 0) { if(status == SL_ESEC_ASN_SIG_CONFIRM_E) { returnStatus = WIFI_PLATFORM_STATUS_SOCKET_CERTVALIDATION_FAILURE; } close(tmpSkt); } } else { *skt = tmpSkt; } }
Hi Lenio,
The use case looks ok from what I can see. This makes me think that the CC3100 and the host are just getting out of sync, which could be caused by a problem with the host interface itself.
Does this happen every time the code is run?
What type of interface is being used?
Thanks,
Ben