Replies: 3 comments 3 replies
-
|
JSON is for a home assistant integration, generally you need to be using a meshtastic app to send messages over mqtt, there are some scripts that do some simple messaging over mqtt only, but no complete clients. |
Beta Was this translation helpful? Give feedback.
-
|
Any of the topics you mentioned should work, the node ID in the topic is not necessary per se. You are missing the "type" in your payload, see: https://meshtastic.org/docs/software/integrations/mqtt/#json-downlink-to-instruct-a-node-to-send-a-message E.g. Also, did you actually make a channel named "mqtt" and enabled downlink there, and do you have JSON enabled? |
Beta Was this translation helpful? Give feedback.
-
|
Having the same problem (I think): private/local MQTT broker (plain vanilla, no auth, no encryption, local hostname 'www'), Heltec_v3 flashed with 2.6.11, configured on WiFi, channel 'mqtt' enabled with both uplink and downlink, MQTT configured with JSON, no encryption/TLS, root 'msh/US'. Messages entered into the channel from gateway or another node are visible to subs to the MQTT broker. How do I troubleshoot this? |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
So on the nodes I have:
msh/USMQTT Attempts:
Topic:
msh/US/2/json/mqtt/!9e0a0718Payload:
{"from": 2651457304, "payload": "hi"}Topic:
msh/US/2/json/mqtt/Payload:
{"from": 2651457304, "payload": "hi"}Topic:
msh/US/2/json/mqtt/Payload:
{"from": "!9e0a0718", "payload": "hi"}Topic:
msh/US/2/json/mqttPayload:
{"from": 2651457304, "payload": "hi"}Topic:
msh/US/2/json/mqttPayload:
{"from": "!9e0a0718", "payload": "hi"}There is conflicting instructions on Meshtastic's official documentation (particularly in topic and payload).
My sources:
msh/US/2/json/mqtt, No flow for sending, just for receiving)msh/US/2/json/mqtt/!<NodeId>)msh/US/2/json/mqtt)I also found this thread: https://www.reddit.com/r/meshtastic/comments/1aukc64/anyone_had_succes_sending_meesage_originating/
But didn't help.
I've tested on 2x T-Decks, a T-Echo, Heltic v3 and a T-Beam Supreme. All running the latest betas
2.6.4.b89355f,2.5.20.4c97351etc.Not sure what I'm doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions