Repository navigation
Conversation
companion.cli sends TXT_TYPE_CLI_DATA from a connected companion to a node it is logged in to; the node runs it and answers in kind. Replies are kept as CLI messages and listed by companion.state as cli_replies. The command line gains meshcore-cli's cmd. Closes #253.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #253.
The MeshCore type is
TXT_TYPE_CLI_DATA; there is noTXT_TYPE_CLI_COMMAND. Every firmware already handles it: a repeater runs it for a logged-in admin and replies the same way. This PR only originates it.proto.SendCommandData:CMD_SEND_TXT_MSGwith txt_type 1. Inbound messages now record whether they are CLI replies.companion.cli {node, to, command}. It takesat_mslike the other input verbs.companion.statelists the replies ascli_replies.cmd <contact> <command>, and the transcript prints each reply.Live test (
MESHBENCH_LIVE=1), native firmware: a companion hears a repeater's advert, logs in with the default password, sendsget nameover the air, and reads back> repeater.