Hi, I’m sure the SIM card is inserted, antenna is correctly installed, sim is activated and LTE-M service is in my area because the sample works out of the box. If I simply run the sample as is, the nrf9160 feather makes a number of POST requests to www.circuitdojo.com/some/path which succeed.
If I make the following changes, however, the app silently fails and resets trying to active the LTE network on line err = lte_lc_connect();
In Kconfig:
config CLOUD_HOSTNAME
string "Base URL"
- default "www.circuitdojo.com"
+ default "okthatworks.com"
Also in Kconfig
config CLOUD_PUBLISH_PATH
string "Publish Path"
- default "/some/path"
+ default "/api/test"
Those are the only changes. The root cert for okthatworks.com is identical to the www.circuitdojo.com root cert, because both domains use certs that are chained up to lets encrypt. Also, the following command shows that the issue isn’t the server:
curl https://okthatworks.com/api/test -X POST -H "Content-Type: application/json" -d '{"do_something":true}'
returns:
data: { do_something: true }%
That api/test route just echos whatever json data is POSTed into it.
@AchimKraus : I am actually using the nfed/samples/https/ sample! Sorry if that wasn’t clear.