-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
AAVAA Board Changes and \x00 config support #684
AAVAA Board Changes and \x00 config support #684
Conversation
Hi, need to fix failed CI jobs before merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It breaks config_board
method for all languages other than cpp and python.
Change in method signature should be made also for java, C#, julia, Rust, Js and matlab.
CI is green because in tests we mostly ignore config_board since its hard to emulate proper response
also, not really sure, that its a good idea to send \0 directly via config_board method and add support for it. Its converted back and forth to\from plain C string in random places for different boards, its not good and as a result it's pretty simple to miss smth and get a mismatch between strlen and original size. If you need to send such byte for your device maybe it makes sense to introduce human readable commands and convert them to actual commands sent to device(like you did) |
Oh I see, I just checked to see if it passes all the CI/CD workflows and thought we're good to go. Regarding the |
But according to convention its expected that this method gets a string from the user and its not designed to handle bytes directly. I would highly recommend to implement higher level commands in config_board method. For example smth like this in user api
This way its more user friendly, since customers dont need to operate with bytes And inside config board method implementation for aavva device you can write some pseudocode:
|
Maybe there is a use case to send bytes directly but I would rather do it as a different method instead patching config_board. |
Any updates on this? |
there is an option to send bytes now, if still needed feel free to create another PR, closing this one since there is no activiti |
I added some new changes:
config_board
method in a way that it accepts\x00
bytes as well by passing the config length to the cpp method.