nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

Asset Tracker v2 - How to monitor the On/Off state of the sliding switches: sw1 and sw2 reported every minute from the nRF9160DK device to a topic of the AWS IoT Core?

I have built and run the application: Asset Tracker v2 using Segger IDE with nRF Connect SDK 1.8.0 , and my nRF9160DK device communicates with the  AWS IoT Core topics.

I can see the battery voltage data (with its time stamp) reported every minute from my nRF9160DK device to the shadow topics of the AWS IoT Core and I can also see the button-pressed data reported (when a button is pressed) from my nRF9160DK device to the AWS IoT Core topic: <IMEI>/messages.

As a next step, I would like to see the On/Off state of the sliding switches: sw1 and sw2 reported every minute from my nRF9160DK device to a topic on the AWS IoT Core.

How can this be done? 

Parents
  • Hi,

    When I tried to introduce some changes to the "Asset Tracker v2" application's src files, I saw the following error message on the LTE Link Monitor, when I tried to run this application:

    "[1,31m<err> aws-iot: Cloud MQTT input error: -16", shown line after line, as can be seen on the attached LTE Link Monitor log file: "LTE Link Monitor log 2022-01-27".

    I then removed from the src files for "Asset Tracker v2" app all changes that I introduced recently but the problem still persisted and the above mentioned error message kept coming on the LTE Link Monitor when I tried to run this application.

    I then tried to build and run the sample "aws_iot" and it seemed to work OK as per the attached LTE Link Monitor log file: "log_file_for_aws_iot_sample_27_01_2022".

    How can I rectify the error "aws-iot: Cloud MQTT input error: -16" that keeps coming on the LTE Link Monitor when I try to run the "Asset Tracker v2" app ?

    Regards,

    JM

Reply
  • Hi,

    When I tried to introduce some changes to the "Asset Tracker v2" application's src files, I saw the following error message on the LTE Link Monitor, when I tried to run this application:

    "[1,31m<err> aws-iot: Cloud MQTT input error: -16", shown line after line, as can be seen on the attached LTE Link Monitor log file: "LTE Link Monitor log 2022-01-27".

    I then removed from the src files for "Asset Tracker v2" app all changes that I introduced recently but the problem still persisted and the above mentioned error message kept coming on the LTE Link Monitor when I tried to run this application.

    I then tried to build and run the sample "aws_iot" and it seemed to work OK as per the attached LTE Link Monitor log file: "log_file_for_aws_iot_sample_27_01_2022".

    How can I rectify the error "aws-iot: Cloud MQTT input error: -16" that keeps coming on the LTE Link Monitor when I try to run the "Asset Tracker v2" app ?

    Regards,

    JM

Children
Related