mirror of
https://github.com/meshtastic/python.git
synced 2026-02-25 11:10:14 -05:00
re-worked the code for ch-set and ch-enable/ch-disable; updated tests
This commit is contained in:
@@ -28,8 +28,9 @@ class Node:
|
||||
print("Channels:")
|
||||
if self.channels:
|
||||
for c in self.channels:
|
||||
if c.role != channel_pb2.Channel.Role.DISABLED:
|
||||
cStr = stripnl(MessageToJson(c.settings))
|
||||
cStr = stripnl(MessageToJson(c.settings))
|
||||
# only show if there is no psk (meaning disabled channel)
|
||||
if c.settings.psk:
|
||||
print(f" {channel_pb2.Channel.Role.Name(c.role)} psk={pskToString(c.settings.psk)} {cStr}")
|
||||
publicURL = self.getURL(includeAll=False)
|
||||
adminURL = self.getURL(includeAll=True)
|
||||
|
||||
Reference in New Issue
Block a user