This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SDK version v1.4.99-dev1 - Cloud_Client() sample application for nRF Cloud is broken

The Cloud_client sample application does not work in this version.

The connection with the nRF Cloud  is disconnected immediately:

I: Network registration status: Connected - roaming
I: Connected to LTE network
I: Connecting to cloud
I: Next connection retry in 30 seconds
I: CLOUD_EVT_CONNECTING
I: CLOUD_EVT_DISCONNECTED
+CSCON: 0
I: Next connection retry in 30 seconds
I: CLOUD_EVT_CONNECTING
+CSCON: 1
I: CLOUD_EVT_DISCONNECTED

Here is the more detailed log:

[00:04:25.041,687] <err> log: argument 2 in source net_mqtt_enc log message "%s: (%p): Encoding Client Id. Str:%s Size:%08x." missinglog_strdup().
[00:04:25.142,669] <dbg> net_mqtt.client_connect: (0x200207f0): Connect completed
[00:04:25.142,730] <dbg> nrf_cloud.nrf_cloud_run: Cloud connection request sent.
[00:04:25.213,317] <dbg> net_mqtt.mqtt_input: (0x200207f0): state:0x00000002
[00:04:25.213,348] <dbg> net_mqtt_rx.mqtt_read_message_chunk: (0x200207f0): [CID 0x200227e4]: Connection closed.
[00:04:25.213,348] <dbg> net_mqtt_sock_tls.mqtt_client_tls_disconnect: (0x200207f0): Closing socket 1
[00:04:25.213,378] <dbg> net_sock.z_impl_zsock_close: (0x200207f0): close: ctx=0x3, fd=1
[00:04:25.213,409] <dbg> nrf_cloud_transport.nct_mqtt_evt_handler: MQTT_EVT_DISCONNECT: result = -128
[00:04:25.213,439] <dbg> nrf_cloud_fsm.drop_event_handler: Dropping FSM transition 9, current state 1
[00:04:25.213,500] <err> net_sock: invalid access on sock 1 by thread 0x200207f0
[00:04:25.713,562] <err> net_sock: invalid access on sock 1 by thread 0x200207f0

Parents Reply Children
No Data
Related