Replies: 2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
So on the nodes I have:
msh/US
MQTT Attempts:
Topic:
msh/US/2/json/mqtt/!9e0a0718
Payload:
{"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/mqtt
Payload:
{"from": 2651457304, "payload": "hi"}
Topic:
msh/US/2/json/mqtt
Payload:
{"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.4c97351
etc.Not sure what I'm doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions