-
Notifications
You must be signed in to change notification settings - Fork 70
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
Script #27
Comments
You are right, for the topic_id I currently do not full expression parsing. A variable instead of a constant works, so it can be dynamic. I could change that in the next future, not too much lines required. Compression during load would work as well, but it would already require basic parsing before writing to to memory and "show script" would show something more obfuscated. When reading it from flash into RAM for interpretation I already compress it in the way you suggest. Do you run into problems with script size? 4KB is somewhat arbitrary. Could increase that... |
May I know what language is the script you are using Martin? THanks! |
It is an 'ad hoc' Martin's script language, not similar to any other. |
Thank you @msillano ! |
If you need more freedom for programming, I would recommend the Arduino version: https://github.com/martin-ger/uMQTTBroker where you can write the application completely in C++. |
Testing scripts I found a unespected behaviour:
This is accepted:
But this not:
With the message:
Error (action command expected) at >>"/user "{Time: | $timestamp | ",ON} retained publish
P.S.
I seen the BNF_: <topic_id> < exp r >, so <topic_id> can't be an expression. OK
One more note:
for a better utilization of 4000 script bytes, maybe it is possible to:
Best regards
Marco
The text was updated successfully, but these errors were encountered: