1.1.33 Improve channel/device settings support

Allow setting to arbitrary byte arrays by preceding the string with 0x
for things like

meshtastic --setchan psk 0x1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b --info
This commit is contained in:
Kevin Hester
2021-01-29 09:51:56 +08:00
parent 01d1a5ab48
commit 9c1232be79
5 changed files with 60 additions and 30 deletions

8
.vscode/launch.json vendored
View File

@@ -28,6 +28,14 @@
"justMyCode": true,
"args": ["--tunnel", "--debug"]
},
{
"name": "meshtastic set chan",
"type": "python",
"request": "launch",
"module": "meshtastic",
"justMyCode": true,
"args": ["--setchan", "psk", "0x1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b1a1a1a1a2b2b2b2b", "--debug"]
},
{
"name": "meshtastic debug",
"type": "python",