You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, hats of to you guys for this repo, fantastic work.
In the current implementation, the filename of a foe file that is send to the slave has to match (one of) the predefined filename(s) exactly. It would be nice to be able to use wildcard characters for this. My application is for a firmware update, it would be nice to be able to specify e.g.: "firmware_v*...*.bin".
The text was updated successfully, but these errors were encountered:
Easy, just specify the part before '*' as the filename in SOES, extra characters will be ignored. It is up to you application to check the file for validity.
Hi @ArthurKetels, thanks for your reply. I tried your solution but it does not seem to work for me.
I specified the filename in the foe_cfg as "firmware_v". If I then send a file named e.g. "firmware_v1.2.3" foe_fopen() returns FOE_ERR_NOTFOUND, since the strncmp compares up to num_chars, which is the length of "firmware_v1.2.3".
Edit: The other way around does work, e.g. I send a file named "firm", which is accepted.
Changing #define FOE_FN_MAX 31 to a value that fits "firmware_v" helps. But I agree the API could be improved so the application has better control about what filenames can be accpted or not.
First off, hats of to you guys for this repo, fantastic work.
In the current implementation, the filename of a foe file that is send to the slave has to match (one of) the predefined filename(s) exactly. It would be nice to be able to use wildcard characters for this. My application is for a firmware update, it would be nice to be able to specify e.g.: "firmware_v*...*.bin".
The text was updated successfully, but these errors were encountered: