Are you pushing it to the MQTT broker via the server’s DNS hostname? Have you tried using the broker’s IP address? What role is it configured to use? Is it set to obtain a network address using DHCP?
I’m looking for similar functionality, but I’d like to better understand the mechanics of routing so I’m looking for low-level radio packets, as in all ALL packets received by or sent from a node. I’ve tried both mqtt and the python cli but neither gives me a full picture. Is there any tool or setting that will enable these low-level packet details to be obtained, or is scraping from serial debug logs the only option available atm?
I forgot to update this thread. The MQTT app I was using, Mosquitto, wasn’t displaying messages even though it was subscribed to the channel. I used MQTTAnalyzer on my iPhone and was able to debug the issue.
While the app uses the meshtastic python API there are errors that are produced that can be ignored, but you’ll be able to see full packets and you can save the output to a file.
I’ve played with the Python API and haven’t yet found a way to get ALL packets including retransmissions and other packets that might not otherwise make it to applications. Is this the kind of low-level stream MMRelay is receiving, or is it the processed/filtered stream?
Ah, yeah. I see that in your post now. if you’ve explored the Python API already, you might not get much more out of this. It relies on the API for all communication with the device and it processes any packets that it sends us.
I don’t remember ever seeing re-transmissions either.
Internal packet handling like retransmissions and rebroadcasts are not exposed to any API, so you’d indeed have to manually scrape the serial logs to check what the device is doing.
If you’re only interested in the working of the protocol (not real-life data of your own mesh), you could have a look at the interactive simulator that displays how packets are propagated over the mesh. Benefit of this is that you can see it of all the nodes in a mesh, not just of one node you are connected to.