Skip to content

Clarify warning message when setting channel PSK during meshtastic --ch-add #507

@rcarteraz

Description

@rcarteraz

When running meshtastic --ch-add <channel_name> --ch-set psk random the channel is added successfully, but it prints a warning:

Connected to radio
Writing modified channels to device
Warning: Need to specify '--ch-index'.

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:

Warning: '--ch-index' not specified. Channel added with the next available index.

Or, consider removing the warning entirely if the command executes successfully without requiring --ch-index when setting the PSK.

Additional Notes:

  • The current behavior is not a bug, but the warning message is misleading and can cause confusion.
  • Improving the warning message or removing it altogether would enhance the user experience and clarity of the command.
  • If a specific channel index is desired, users can still specify it using --ch-index.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions