Salta al contenuto

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

posta 3 anni fa405 visualizzazioni
1 Risposta
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
ESPERTO
con risposta 3 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.