mirror of
https://github.com/pdxlocations/contact.git
synced 2026-06-30 23:11:22 +02:00
add tcp interface
This commit is contained in:
+2
-1
@@ -1,12 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import curses
|
||||
import meshtastic.serial_interface
|
||||
import meshtastic.serial_interface, meshtastic.tcp_interface
|
||||
from pubsub import pub
|
||||
from meshtastic import config_pb2, BROADCAST_NUM
|
||||
|
||||
# Initialize Meshtastic interface
|
||||
interface = meshtastic.serial_interface.SerialInterface()
|
||||
# interface = meshtastic.tcp_interface.TCPInterface(hostname='192.168.xx.xx')
|
||||
|
||||
myinfo = interface.getMyNodeInfo()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user