mirror of
https://github.com/meshtastic/python.git
synced 2026-01-05 22:37:57 -05:00
23 lines
494 B
Python
23 lines
494 B
Python
#!python3
|
|
|
|
import argparse
|
|
from .interface import StreamInterface
|
|
import logging
|
|
|
|
|
|
def main():
|
|
"""Perform command line meshtastic operations"""
|
|
parser = argparse.ArgumentParser()
|
|
|
|
parser.add_argument("--debug", help="Show debug log message",
|
|
action="store_true")
|
|
|
|
args = parser.parse_args()
|
|
|
|
logging.basicConfig(level=logging.DEBUG if args.debug else logging.INFO)
|
|
client = StreamInterface("/dev/ttyUSB0")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|