スキップしてコンテンツを表示

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

1回答
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
エキスパート
回答済み 3年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ