I was just playing around with my new Meshtastic devices and now wondering how to read public messages from python without using a Meshtastic device, since Meshtastic uses mqtt, any mqtt client should have access to its public mqtt service. Right?
have not tried it. very likely you need to provide username and password. and the subscribe string may likely be “msh/#”, or better something more specific (you will realize when you receive some topics).
It’s working but the message is encrypted.
I was expecting decoding it with .decode('utf-8') but look more complicated when I see the way it’s decoded on meshtastic-mqtt-connect.py from the project provided by @GUVWAV.