Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make command replies consistent with requests #22

Open
macvenez opened this issue Oct 15, 2024 · 0 comments · May be fixed by #24
Open

Make command replies consistent with requests #22

macvenez opened this issue Oct 15, 2024 · 0 comments · May be fixed by #24

Comments

@macvenez
Copy link
Contributor

As talked before it would be nice to have command replies (for example !bat) to answer with some consistency to command requests for easier handling by software.

As proposed before each command reply can start with the character $.

For example when requesting battery info through !bat the reply from the freakwan device could be $battery 100%, 4.20 volts

In this way we could avoid using for example regexps to handle every reply from the node and easily distiguish between command replies and received messages (from other freakwan nodes)

macvenez added a commit to macvenez/freakwan that referenced this issue Oct 15, 2024
@macvenez macvenez linked a pull request Oct 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant