Find program version after a compilation

Using OTA functions with Waspmote
Post Reply
vinche84
Posts: 40
Joined: Mon Sep 26, 2016 9:59 am

Find program version after a compilation

Post by vinche84 » Wed Nov 09, 2016 11:36 pm

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

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Find program version after a compilation

Post by libelium-dev » Thu Nov 10, 2016 8:55 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest