Hello,
We've been developing some software,for the nrf9160, based on the asset tracker that posts to an AWS server periodically using the aws_iot library. After many days of running without incident the device appears to have stopped posting altogether; checking the output we see that our connect request is being met with "mqtt_connect, error: -22".
This appears to be indicate some sort of argument error, but nothing relating to the connection should be changing (endpoints and ports are set in config files, certificates are written to the modem, client is setup at initialization which happens on initial boot-up). The device does appear to recover after a simple power cycle, so I don't think anything is fundamentally wrong with the code.
Does anyone have any ideas why this might be happening, or some way to mitigate it if it does happen?
Output Log: