Hello,
I am trying to program and use the AWS IoT example to send data to the amazon webserver. I worked through this post (https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/software-and-protocols/posts/connecting-to-aws-cloud-services-using-the-nrf9160) with success up until loading the modified AWS IoT sample.
The example in this post wouldn't build correctly, so I switched to the AWS IoT example and connected with the LTE Link monitor where I received the code:
AWS_IOT_EVT_CONNECTING
RRC mode: Connected
E: mqtt_connect, error: -111
AWS_IOT_EVT_CONNECTING
RRC mode: Idle
Next connection retry in 30 seconds
The newlib is active for this sample which means that error -111 means connection refused.
I found a few other posts that had gotten this error from running out of data on their sim card, but I checked this with the nRF cloud website and it was registered and had data.
Another potential area was the certificates, as I was a bit unsure of the instructions in the blog for this part. The CA certificate and private keys were both straightforward, but I think amazon AWS has updated their certificates and there was no certificate labeled client certificate, only device certificate. I assumed that these were the same and used the device certificate here but I was not sure if that was correct, and if it wasn't what else I would use.
I've double checked the prj config file and updated/double checked the broker host/sec tag/device name which I suspected was an issue but could not find any errors.
Do you have any other suggestions for things that may have gone wrong or things to try?
Thanks for the help!