{"library":"meshtastic","title":"Meshtastic Python API","description":"Python API and client shell for communicating with Meshtastic mesh radios. Current version 2.7.8, supporting Python 3.9-3.14. Regular releases follow the Meshtastic firmware updates.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install meshtastic"],"cli":{"name":"meshtastic","version":"2.7.8"}},"imports":["from meshtastic import SerialInterface","import meshtastic.tcp"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import meshtastic\nimport meshtastic.serial_interface\nimport time\n\n# Replace with your serial port, e.g., '/dev/ttyUSB0' or 'COM3'\niface = meshtastic.serial_interface.SerialInterface('/dev/ttyUSB0')\ntry:\n    print(\"Connected! Sending a message...\")\n    iface.sendText(\"Hello mesh!\", destinationId=meshtastic.BROADCAST_NUM)\n    time.sleep(2)\nfinally:\n    iface.close()","lang":"python","description":"Connects to a Meshtastic device via serial and sends a broadcast message.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}