Skip to content

Commit

Permalink
Add helper method to get firmware version from OTA cluster
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <[email protected]>
  • Loading branch information
cdjackson committed Dec 1, 2018
1 parent 05e100a commit 5501bdc
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,16 @@ public void run() {
return false;
}

/**
* The file version of the running firmware image on the device. The information is available for the server to
* query via ZCL read attribute command. The attribute is optional on the client.
*
* @return the current firmware version on the remote device
*/
public Integer getCurrentFileVersion() {
return cluster.getCurrentFileVersion(Long.MAX_VALUE);
}

/**
* Send an updated status on OTA progress to the listeners
*
Expand Down

0 comments on commit 5501bdc

Please sign in to comment.