|
|
|
@ -66,7 +66,7 @@ public class DefaultUpdateService implements UpdateService { |
|
|
|
|
|
|
|
@PostConstruct |
|
|
|
private void init() { |
|
|
|
updateMessage = new UpdateMessage("", false); |
|
|
|
updateMessage = new UpdateMessage("", false, ""); |
|
|
|
if (updatesEnabled) { |
|
|
|
try { |
|
|
|
platform = System.getProperty("platform", "unknown"); |
|
|
|
@ -124,7 +124,8 @@ public class DefaultUpdateService implements UpdateService { |
|
|
|
JsonNode response = restClient.postForObject(UPDATE_SERVER_BASE_URL+"/api/thingsboard/updates", request, JsonNode.class); |
|
|
|
updateMessage = new UpdateMessage( |
|
|
|
response.get("message").asText(), |
|
|
|
response.get("updateAvailable").asBoolean() |
|
|
|
response.get("updateAvailable").asBoolean(), |
|
|
|
version |
|
|
|
); |
|
|
|
} catch (Exception e) { |
|
|
|
log.trace(e.getMessage()); |
|
|
|
|