How to configure LWT with AWS Amplify PubSub module.

0

We are trying to detect mobile app's MQTT client abrupt disconnections. Is it possible to configure Last Will and Testament with AWS Amplify PubSub module? If so how can we enable and configure this? There does not seem to be anything mentioned in the docs we refer to: https://docs.amplify.aws/lib/pubsub/subunsub/q/platform/js/#subscription-connection-status-updates

K676
asked a year ago221 views
1 Answer
1

Hi, you can detect client disconnections also using AWS IoT Core Lifecycle events. These events are published on reserved topics and can be subscribed by an AWS IoT Rule that can send the information to downstream application for further actions. You can have a look at these two projects on how to use such events in your backend:

https://github.com/mangelino/aws-iot-device-connectivy-tracking

https://github.com/aws-samples/connectivity-management-example-for-aws-iot-core

AWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions