-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Command should be able to end with other characters #5433
Conversation
With previous version, all the commands have to end with a space (' '). So Var1=Mem1+1 will become an invalid command. With this new implement, a command can be splited up by not only spaces but also symbols like '=', '(', ',', etc. Actually commands can only use letters, digits and underscores, so any other characters can end the command. ("/" might be included in commands as a start of command) There are some other improvement: Leading spaces are allowed. Performance should be a little bit better Less memory usage
I'll need to dive into this as currently it doesn't fix mqtt provided commands. |
Not a pointer, should not use nullptr.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
more time |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
More time |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem. |
Merging of pull request arendst#5433 missed some code.
Description:
New implementation of ExecuteCommand()
With previous version, all the commands have to end with a space (' '). So
Var1=Mem1+1
will become an invalid command.
With this new implement, a command can be split up by not only spaces but also symbols like '=', '(', ',', etc. Actually commands can only use letters, digits and underscores, so any other characters can end the command. ("/" might be included in commands as a start of command)
There are some other improvement:
Related issue (if applicable): fixes #
Checklist: