Page 1 of 1

Find program version after a compilation

Posted: Wed Nov 09, 2016 11:36 pm
by vinche84
Dear libelium dev,
where I can find program version after i compile a scratch? For OTA I need to put this information in UPGRADE.txt file.

Thanks in advance.
Vincenzo

Re: Find program version after a compilation

Posted: Thu Nov 10, 2016 8:55 am
by libelium-dev
Hi,

The program version is set by the the user with Utils.setProgramVersion(1);

Also you can read the program version of a code with next function,

USB.println(Utils.getProgramVersion(), DEC);

Hope this help.

Regards