Hi!
I am trying to subscribe to nrf cloud with topic "prod/<TEAM_ID>/<DEVICE_ID>/jobs/rcv". After that I get Disconnect event in the MQTT handler.
Topic "prod/<TEAM_ID>/m/#" works perfectly, no disconnections.
Device shadow is updated as:
Hi!
I am trying to subscribe to nrf cloud with topic "prod/<TEAM_ID>/<DEVICE_ID>/jobs/rcv". After that I get Disconnect event in the MQTT handler.
Topic "prod/<TEAM_ID>/m/#" works perfectly, no disconnections.
Device shadow is updated as:
Hello,
I will need more information on what is going on. What version of the nRF Connect SDK are you working on? What application are you running on you board?
Please note that our team wiil be out of office on Friday, Sept 2nd and an answer will be provided Monday 5th.
Kind regards,
Øyvind
Hi Øyvind,
Here how it looks in Debug Terminal:
[00:00:09.301,513] [0m<inf> Waterguard: Setup Complete[0m
[00:00:16.713,684] [0m<inf> mqtt_simple: MQTT client connected[0m
[00:00:16.715,332] [0m<inf> mqtt_simple: Publishing: {"state":{"reported":{"device":{"serviceInfo":{"fota_v2":["APP"],"ui":null}}}}}[0m
[00:00:16.715,362] [0m<inf> mqtt_simple: to topic: $aws/things/account-813d19e6-4222-4eeb-9d38-c0aa2c710f43/shadow/update len: 70[0m
[00:00:16.722,991] [0m<inf> mqtt_simple: Subscribing to: prod/813d19e6-4222-4eeb-9d38-c0aa2c710f43/m/# len 45[0m
[00:01:22.145,843] [0m<inf> nrf_cloud_fota: Topic: prod/813d19e6-4222-4eeb-9d38-c0aa2c710f43/account-813d19e6-4222-4eeb-9d38-c0aa2c710f43/jobs/req[0m
[00:01:22.145,904] [0m<inf> nrf_cloud_fota: Payload (4 bytes): [""][0m
[00:01:31.967,163] [0m<inf> mqtt_simple: MQTT client disconnected: -128[0m
[00:01:31.967,224] [1;31m<err> mqtt_simple: mqtt_input: -128[0m
[00:01:31.967,224] [0m<inf> mqtt_simple: Disconnecting MQTT client...[0m
[00:01:31.967,285] [1;31m<err> mqtt_simple: Could not disconnect MQTT client: -128[0m
Hi Øyvind,
Here how it looks in Debug Terminal:
[00:00:09.301,513] [0m<inf> Waterguard: Setup Complete[0m
[00:00:16.713,684] [0m<inf> mqtt_simple: MQTT client connected[0m
[00:00:16.715,332] [0m<inf> mqtt_simple: Publishing: {"state":{"reported":{"device":{"serviceInfo":{"fota_v2":["APP"],"ui":null}}}}}[0m
[00:00:16.715,362] [0m<inf> mqtt_simple: to topic: $aws/things/account-813d19e6-4222-4eeb-9d38-c0aa2c710f43/shadow/update len: 70[0m
[00:00:16.722,991] [0m<inf> mqtt_simple: Subscribing to: prod/813d19e6-4222-4eeb-9d38-c0aa2c710f43/m/# len 45[0m
[00:01:22.145,843] [0m<inf> nrf_cloud_fota: Topic: prod/813d19e6-4222-4eeb-9d38-c0aa2c710f43/account-813d19e6-4222-4eeb-9d38-c0aa2c710f43/jobs/req[0m
[00:01:22.145,904] [0m<inf> nrf_cloud_fota: Payload (4 bytes): [""][0m
[00:01:31.967,163] [0m<inf> mqtt_simple: MQTT client disconnected: -128[0m
[00:01:31.967,224] [1;31m<err> mqtt_simple: mqtt_input: -128[0m
[00:01:31.967,224] [0m<inf> mqtt_simple: Disconnecting MQTT client...[0m
[00:01:31.967,285] [1;31m<err> mqtt_simple: Could not disconnect MQTT client: -128[0m
Hello,
My apologies for the late reply.
Have you read the nRF Cloud documentation "Getting started with FOTA"? As described in the nRF Cloud library in SDK documentation, the nRF Cloud implementation supports TLS secured MQTT as the communication protocol with more information provided under Firmware over-the-air (FOTA) updates.
In nRF Connect SDK v2.0.x we have added the nRF9160: nRF Cloud MQTT multi-service sample.
Kind regards,
Øyvind
Thank you for the information. Yes I read all this articles during project. I use TLS, CA crtificate, client certificate and private key. MQTT client can't connect to the broker without them.
My MQTT client connects successfully to the NRF cloud broker. Also it successfully subscribes to all messages topic(prod/<TEAM_ID>/m/#). But when I try to subscribe to fota notifications(prod/<TEAM_ID>/<DEVICE_ID>/jobs/rcv) or publish request for fota jobs(prod/<TEAM_ID>/<DEVICE_ID>/jobs/req) MQTT client got MQTT_EVT_DISCONNECT event.
Can you test these topics on your side with nRF Connect 1.9.1 SDK(We are not able to migrate our project every time when new version of SDK appears)?
Thank you for your assistance.