Saltar al contenido

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

preguntada hace 3 años405 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.