nrf cloud mqtt fota

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:

FOTA V2
APP
What I missed?
Thank you
Parents
  • 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] <inf> Waterguard: Setup Complete
    [00:00:16.713,684] <inf> mqtt_simple: MQTT client connected
    [00:00:16.715,332] <inf> mqtt_simple: Publishing: {"state":{"reported":{"device":{"serviceInfo":{"fota_v2":["APP"],"ui":null}}}}}
    [00:00:16.715,362] <inf> mqtt_simple: to topic: $aws/things/account-813d19e6-4222-4eeb-9d38-c0aa2c710f43/shadow/update len: 70
    [00:00:16.722,991] <inf> mqtt_simple: Subscribing to: prod/813d19e6-4222-4eeb-9d38-c0aa2c710f43/m/# len 45
    [00:01:22.145,843] <inf> nrf_cloud_fota: Topic: prod/813d19e6-4222-4eeb-9d38-c0aa2c710f43/account-813d19e6-4222-4eeb-9d38-c0aa2c710f43/jobs/req
    [00:01:22.145,904] <inf> nrf_cloud_fota: Payload (4 bytes): [""]
    [00:01:31.967,163] <inf> mqtt_simple: MQTT client disconnected: -128
    [00:01:31.967,224] <err> mqtt_simple: mqtt_input: -128
    [00:01:31.967,224] <inf> mqtt_simple: Disconnecting MQTT client...
    [00:01:31.967,285] <err> mqtt_simple: Could not disconnect MQTT client: -128

Reply
  • Hi Øyvind,

    Here how it looks in Debug Terminal:

    [00:00:09.301,513] <inf> Waterguard: Setup Complete
    [00:00:16.713,684] <inf> mqtt_simple: MQTT client connected
    [00:00:16.715,332] <inf> mqtt_simple: Publishing: {"state":{"reported":{"device":{"serviceInfo":{"fota_v2":["APP"],"ui":null}}}}}
    [00:00:16.715,362] <inf> mqtt_simple: to topic: $aws/things/account-813d19e6-4222-4eeb-9d38-c0aa2c710f43/shadow/update len: 70
    [00:00:16.722,991] <inf> mqtt_simple: Subscribing to: prod/813d19e6-4222-4eeb-9d38-c0aa2c710f43/m/# len 45
    [00:01:22.145,843] <inf> nrf_cloud_fota: Topic: prod/813d19e6-4222-4eeb-9d38-c0aa2c710f43/account-813d19e6-4222-4eeb-9d38-c0aa2c710f43/jobs/req
    [00:01:22.145,904] <inf> nrf_cloud_fota: Payload (4 bytes): [""]
    [00:01:31.967,163] <inf> mqtt_simple: MQTT client disconnected: -128
    [00:01:31.967,224] <err> mqtt_simple: mqtt_input: -128
    [00:01:31.967,224] <inf> mqtt_simple: Disconnecting MQTT client...
    [00:01:31.967,285] <err> mqtt_simple: Could not disconnect MQTT client: -128

Children
Related