Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
fix(mqtt): update password quality topic
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelje authored and Hector Rondon committed Jan 31, 2018
1 parent b1e49ba commit 6b77b6c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/src/main/java/org/flyve/mdm/agent/services/MQTTService.java
Expand Up @@ -443,6 +443,21 @@ public void messageArrived(String topic, MqttMessage message) throws Exception {
}
}

// Policy/passwordEnabled
String PASSWORD_QUALITY = "passwordQuality";
if(topic.toLowerCase().contains(PASSWORD_QUALITY.toLowerCase())) {
try {
JSONObject jsonObj = new JSONObject(messageBody);

if(jsonObj.has(PASSWORD_QUALITY)) {
String quality = jsonObj.getString(PASSWORD_QUALITY);
mqttHelper.passwordQuality(quality);
}
} catch (Exception ex) {
FlyveLog.e(ex.getMessage());
}
}

// Policy/disableCamera
String DISABLE_CAMERA = "disableCamera";
if(topic.toLowerCase().contains(DISABLE_CAMERA.toLowerCase())) {
Expand Down

0 comments on commit 6b77b6c

Please sign in to comment.