Decode Meshtastic

decode meshtastic

This project is used to recieve messages from SenseCap Meshtastic devices and republish them to Orion-LD context broker. Messages need to be decoded from the protobuf format.

Services Used

  • FIWARE IoT-Agent JSON – FIWARE agent

  • FIWARE Orion-LD context broker - Context broker

  • EMQX broker - MQTT broker

  • Postgres database - database

List of used nodes

  • Inject/Timestamp – Triggers flow execution

  • Function – Adds custom logic using JavaScript

  • HTTP Request – Sends HTTP requests to external services

  • Debug – Displays messages in the debug console

  • HTTP in – Recieve HTTP messages

  • JSON - parse JSON to JS object

  • MQTT in - MQTT subscription node

  • MQTT out - MQTT published node

  • Postgres node - Executes queries passed in msg.query property

For details, see Node-RED Documentation

Most of the logic in this project is adapted from the fiware-playground example. For the full walkthrough of that reference flow—covering IoT-Agent and Orion-LD setup—see the official guide.

Groups iot-agent config, Orion-LD config, subscription endpoints are described in the mentioned documentation.

Project works on premise that Meshtastic device is sending its data to the MQTT broker running on SandBox, to configure device to send its data to Sandbox checkout this docs: Decoding Meshtastic Messages

GROUP: decode meshtastic messages

group decode meshtastic messages

This group is used to subscribe to messages meshtastic devices are sending and decode them. Switch node is used to filter through the messages based on MQTT topic, messages containing stat in the topic are not handled for now.

(TODO: explain the code by the segments)