From d02815be9f33c99ab7d05bacc5e9137ab9c96af5 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 7 Oct 2024 20:06:16 -0700 Subject: [PATCH] =?UTF-8?q?updateBLE=F0=9F=9B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- curses-client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/curses-client.py b/curses-client.py index 69a4b03..112af83 100644 --- a/curses-client.py +++ b/curses-client.py @@ -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()