mirror of
https://github.com/pdxlocations/contact.git
synced 2026-03-28 17:12:35 +01:00
Merge branch 'main' into argparse
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user