updateBLE🛜

This commit is contained in:
SpudGunMan
2024-10-07 20:06:16 -07:00
parent 890f2ce2b0
commit d02815be9f
+4 -2
View File
@@ -7,7 +7,7 @@ V 0.1.7
'''
import curses
import meshtastic.serial_interface, meshtastic.tcp_interface
import meshtastic.serial_interface, meshtastic.tcp_interface, meshtastic.ble_interface
from pubsub import pub
import textwrap # Import the textwrap module
@@ -21,7 +21,9 @@ from settings import settings
# Initialize Meshtastic interface
interface = meshtastic.serial_interface.SerialInterface()
# interface = meshtastic.tcp_interface.TCPInterface(hostname='192.168.xx.xx')
# interface = meshtastic.tcp_interface.TCPInterface(hostname='meshtastic.local')
# discover ble with 'meshtsastic --ble-scan' and replace the MAC address below
# interface = meshtastic.ble_interface.BLEInterface('AA:BB:CC:DD:EE:FF')
myinfo = interface.getMyNodeInfo()