nRF Cloud Multi-service Quick Start is Working, But compiling with nRF7002 Shield can't connect to nRF Cloud

Hi,

I am using a nRF9161-dk with the nRF7002-ek shield WiFi tracking.

Using the nRF Connect Quick-Start, I downloaded the nRF Cloud Multi-service application and went through provisioning, and I can see my device on my nRF Cloud account, using the cellular and GPS tracking.

Because I need to review the nRF7002 WiFi Tracking with the Shield device, I downloaded the source code and added the extra configs and selected the shield.

-DSHIELD=nrf7002ek_nrf7000 -DSB_CONF_FILE=sysbuild_nrf700x-wifi-scan.conf -DEXTRA_CONF_FILE=overlay-nrf7002ek-wifi-scan-only.conf

This compiles OK and I can program/flash it on to my dev kit.

The application runs OK and connects to the LTE-M network, but with my own compiled version I am now getting this error:

[00:12:04.663,665] <err> nrf_cloud_transport: MQTT input error: -128
[00:12:04.663,726] <err> nrf_cloud_transport: Error disconnecting from cloud: -128
[00:12:04.663,787] <inf> cloud_connection: Disconnecting from nRF Cloud
[00:12:04.663,818] <err> cloud_connection: Could not connect to nRF Cloud
[00:12:04.663,818] <inf> cloud_connection: Retrying in 30 seconds...

I have verified the token is still valid and provisioned by using this command: AT&ATTESTTOKEN

nRF Cloud says it is valid and already claimed.

What do I need to do to the source code to allow it to connect back to my nRF Cloud account?

Thanks,

Phil.

Related