Getting Anchors Online/Offline status in real time

I’m using MDEK1001 Dev kits with gateways. I’ve got another RPI receiving the MQTT messages.

Is there a way to check when an anchor going offline? Maybe send a MQTT message to an anchor to get the status of the anchor?

What command must I use to send and receive the data?