liamcottle / meshtastic-map

A map of all Meshtastic nodes heard via MQTT.
https://meshtastic.liamcottle.net
MIT License
95 stars 24 forks source link

Another way to determine MQTT as Online/Offiline (meshtastic/firmware/pull/4305) #50

Closed Talie5in closed 2 months ago

Talie5in commented 3 months ago

https://github.com/meshtastic/firmware/pull/4305 has changed/removed the status topic from MQTT which now stops the ability to see if the MQTT is Online or Offline in the map (regardless of using a private MQTT broker)

Is there another method that can be used to determine the status?

liamcottle commented 3 months ago

Not sure on that one...

Wasn't expecting that change. I guess you'll just have to hope that your node is correctly connecting to your MQTT server, and just assume that it's always connected.

Looking at the change, they intend to publish the node info on each new connection to the MQTT server, although this is not implemented yet. This still wouldn't tell you if it's currently connected, just that it had connected at a specific timestamp.

As far as I know, you will no longer be able to determine if you node is currently connected to the MQTT server. Maybe someone else knows a way to tell?

I will likely keep all of my gateway nodes on the older firmware until another option is available.

liamcottle commented 2 months ago

Closing out, as this feature has been updated to be based on when a packet was heard being gated to MQTT by the node in question.