Merge branch 'main' into argparse

This commit is contained in:
Ian McEwen
2024-10-07 21:36:24 -07:00
committed by GitHub

View File

@@ -57,6 +57,7 @@ conn.add_argument(
args = parser.parse_args()
# Initialize Meshtastic interface
if args.ble:
interface = meshtastic.ble_interface.BLEInterface(args.ble if args.ble != "any" else None)
elif args.host:
@@ -69,6 +70,7 @@ else:
if interface.devPath is None:
interface = meshtastic.tcp_interface.TCPInterface("localhost")
myinfo = interface.getMyNodeInfo()
myNodeNum = myinfo['num']