Tool/software: Code Composer Studio
Tool/software: Code Composer Studio
Been running into some errors when running the subscribe_publish_sample code.
The error message:
startSNTP: Current time: Thu Jun 6 14:12:05 2019
CC32XX has connected to AP and acquired an IP address.
IP Address: 172.30.5.134
AWS IoT SDK Version 3.0.1-
Connecting...
ERROR: runAWSClient L#108
Error(-24) connecting to xxxxxxxxxxxx.iot.us-east-1.amazonaws.com:8883
Subscribing...
ERROR: runAWSClient L#126
Error subscribing (-13)
ERROR: runAWSClient L#178
An error occurred in the loop. Error code = -13
What I've done:
- Recreated project from scratch, double checking wificonfig.h,certs.h and aws_iot_config.h
- Tried both Starfield Class 2 Certificate Authority, as well as the VeriSign Class 3 Public G5 certificate
- Tried using non-ats and ats endpoints
What I believe:
After exploring the forums i BELIEVE the issue lies in the network_sl.c file. Multiple post refer back to following code:
static int getErrno(int ret) { if (ret == -1) { return (errno); } else { return (ret); } } IoT_Error_t iot_tls_connect(Network *pNetwork, TLSConnectParams *TLSParams) { int retConnect; ... retConnect = connect(skt, (struct sockaddr *)&address, sizeof(address)); if ((retConnect < 0) && (getErrno(retConnect) != SL_ERROR_BSD_ESECUNKNOWNROOTCA)) { // if ((retConnect < 0)) { ret = NETWORK_ERR_NET_CONNECT_FAILED; goto QUIT; } ... }
but i am not 100% sure how to actually implement this into my current code, more specifically where to paste it in. When i attempted I got errors saying most added variables were undefined.
Any help would be much appreciated