ROS Version

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.

Well, there are release candidates on the download page… You could get the ISO of one, install it on a VM, and check.

Thans Boen,
Yeah, this will be my last option as I like to avoid try-error work. :stuck_out_tongue:

It seems, looking at https://mikrotik.com/download and https://mikrotik.com/download/archive, that the no-number characters shall be used to split up to three group numbers.