You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fix I put up is slightly different -- it instead makes --ch-index and --ch-add incompatible, so that after adding a channel, the CLI can set the channel index to that of the newly added channel, and then allow modifying that channel further. To do this without the change would require knowing what index the new channel will be added at, and without the incompatibility can do the nonintuitive thing of adding one channel and then modifying a different one, so I think it's better that way, but obviously open to ideas. With --ch-add and --ch-index incompatible, though, I think the error message is fine as-is.
When running
meshtastic --ch-add <channel_name> --ch-set psk random
the channel is added successfully, but it prints a warning:This warning is confusing because the channel is still added and the PSK is set correctly, despite the message implying that
--ch-index
is required.Suggested Improvement:
Update the warning message to provide more clarity on the expected behavior when setting the channel PSK during
--ch-add
. For example:Or, consider removing the warning entirely if the command executes successfully without requiring
--ch-index
when setting the PSK.Additional Notes:
--ch-index
.The text was updated successfully, but these errors were encountered: