Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lizTheDeveloper/8b8032607d62cd86aabdf6bd14076dfe to your computer and use it in GitHub Desktop.
Save lizTheDeveloper/8b8032607d62cd86aabdf6bd14076dfe to your computer and use it in GitHub Desktop.

Hands-on Testing: Sending & Receiving Messages (Python CLI)

Prerequisites

  • Python Installed: Version 3.x
  • Pip Installed: Required for package management
  • Meshtastic Python CLI Installed: pip install meshtastic
  • Meshtastic Device: Connected via USB

Steps

  1. Verify Device Connection

    • Open a terminal or command prompt.
    • Run the following command to check if the device is detected:
      meshtastic --info
      
  2. List Available Nodes

    • Run the following command to see other nodes in the network:
      meshtastic --nodes
      
  3. Send a Message

    • Use the following command to send a test message:
      meshtastic --sendtext "Hello, this is a test!"
      
    • If successful, the message will be transmitted to the network.
  4. Receive Messages

    • Messages from other nodes should appear in the terminal automatically.
    • If messages do not appear, check the node list to ensure connectivity.

Troubleshooting

  • Ensure the device is powered on and properly connected via USB.
  • If --info does not return results, try restarting the device.
  • Check if the firmware is up to date.
  • Ensure the correct serial port is being used.

For further details, visit the Meshtastic Python CLI Guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment