From e03b98bcbe8ee34915dcf8dd4f3b90137b992d06 Mon Sep 17 00:00:00 2001 From: pdxlocations <117498748+pdxlocations@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:21:23 -0700 Subject: [PATCH] Delete get-channels.py --- get-channels.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 get-channels.py diff --git a/get-channels.py b/get-channels.py deleted file mode 100644 index 4d7e8f6..0000000 --- a/get-channels.py +++ /dev/null @@ -1,19 +0,0 @@ -import meshtastic.serial_interface -import base64 - -# Initialize Meshtastic interface -interface = meshtastic.serial_interface.SerialInterface() - -# Get node information -node = interface.getNode('^local') -channels = node.channels -print (channels) -if channels: - print("Channels:") - for channel in channels: - if channel.role: - psk_base64 = base64.b64encode(channel.settings.psk).decode('utf-8') - print(f"Index: {channel.index}, Role: {channel.role}, PSK (Base64): {psk_base64}, Name: {channel.settings.name}") -else: - print("No channels found.") -