TheThingsArchive / ttn

The Things Network Stack V2
https://www.thethingsnetwork.org
MIT License
461 stars 277 forks source link

How to identify when a device or gateway is down? #723

Closed FranciscoGJ closed 5 years ago

FranciscoGJ commented 6 years ago

Hi! I am using Data API MQTT and I would like to know how I can identify if a device or gateway is down.

Any suggestions?

KrishnaIyer commented 6 years ago

HI @FranciscoGJ You can use the cli to check the status of the gateway/device: https://www.thethingsnetwork.org/docs/network/cli/quick-start.html

If you are using your own private instance of the TTN Network, make sure to set the mqtt address and router-id to the ones of your network in the cli using the --mqtt-address and --router-id options.