Skip to content

Instantly share code, notes, and snippets.

View mikebertiean's full-sized avatar

Michael Bertiean mikebertiean

View GitHub Profile
@mikebertiean
mikebertiean / gist:22d9296198a8ba249712
Last active January 26, 2016 19:14
Software update of a Philips Hue bridge
private void checkForUpdate() {
String originalVersion = bridge.getResourceCache().getBridgeConfiguration().getSoftwareVersion();
boolean showToast = true;
bridge.getResourceCache().getBridgeConfiguration().setPortalServicesEnabled(true);
if(bridge.getResourceCache().getBridgeConfiguration().getPortalState().getSignedOn()){
bridge.getResourceCache().getBridgeConfiguration().setCheckForUpdate(true); //set the check for update flag to true
Toast.makeText(this, "Checking for update ...",Toast.LENGTH_LONG).show();