What is the best way to determine the connection state of an AWS IoT device?

Peter G. Source

How can I determine if a particular AWS IoT device is currently online? I could send an MQTT message and make the device answer it. But is there some implicit way on seeing if a device is online/connected?



answered 2 years ago Peter G. #1

Ok, there is a dedicated internal MQTT topic for it. Subscribe to $aws/events/presence/# to get presence events for all your devices.

comments powered by Disqus