SparkFun Thing Plus - nRF9160 How to receive messages from the cloud

I am using the cloud client example and connect to the nRF Cloud.  I receive message fine on an interval and when I press the button.

I do not get any notification in my application when i send a message.  i.e. {"update_interval":"3"}

Can you let me know what I am doing wrong?

Parents Reply Children
  • I would highly recommend upgrading both the modem FW version and the SDK version. A lot of improvements have happened since those versions were released.

    Anyway, in the meantime, I found out why you don't receive anything from nRF Cloud: You are missing the "appId" field in the JSON message. The "appId" can be anything you want, e.g. {"appId":"CFG","update_interval":"3"}.

  • Thanks for the detail.  I just logged in and tried again and I get. "Request failed with status code 400".

    This is new and happens for whatever message I enter.

    What version of the SDK and modem firmware would you recommend?

  • Richard said:
    I just logged in and tried again and I get. "Request failed with status code 400".

    That's strange... Does it still happen?

    Richard said:
    What version of the SDK and modem firmware would you recommend?

    Newer is generally better. There was especially some big improvements with NCS v2.0.0 and mfw v1.3.0.

    Though you should note that the cloud_client sample was removed in NCS v2.0.0.

    I also don't think the SDK or modem versions affect this problem, so I wouldn't expect an upgrade to help on this particular issue.

Related