Hello everybody.
I’ve started my second program using my own basic API (https://github.com/silderan/QMikrotikAPI)
This time I’ll like to take care of ROS version.
I know how to obtain it (/system/resource/getall), but i don’t know if there is a common template to obtain version so I can compare it properly.
For now, I’ve just split version string using a . (dot) and checking the text on the right size if it is stable or other…
For example: “6.36.3 (stable)” become:
Mayor version: 6
Medium version: 36
Minor version: 3
Version status: stable
Is it possible that the text will be in another place in string; something like 6.36rc.3 ?
Is it possible that the text wont be sorrounded by (), or even sorrounded by other characters ?
How many posibles textes could I find other than “stable”?
All this will be useles if never will exists a 6.36.3 (RC) and 6.36.3 (stable) meaning that de stable version will have a diferent number that release candidate one, so I can discard all non-number characters.
You know… programing a string parser is allways a pain in the ass XD
Thanks!
Silderan.