Skip to content

Commit

Permalink
#453 : Add udpate command to client-demo to trigger registration update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Feb 7, 2020
1 parent 1ff829b commit d9485d4
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -477,6 +477,8 @@ public void objectAdded(LwM2mObjectEnabler object) {
commandsHelp.append(System.lineSeparator());
commandsHelp.append(" - delete <objectId> : to disable a new object.");
commandsHelp.append(System.lineSeparator());
commandsHelp.append(" - update : to trigger a registration update.");
commandsHelp.append(System.lineSeparator());
commandsHelp.append(" - w : to move to North.");
commandsHelp.append(System.lineSeparator());
commandsHelp.append(" - a : to move to East.");
Expand Down Expand Up @@ -537,6 +539,8 @@ public void run() {
scanner.next();
LOG.info("\"Invalid syntax, <objectid> must be an integer : delete <objectId>");
}
} else if (command.startsWith("update")) {
client.triggerRegistrationUpdate();
} else if (command.length() == 1 && wasdCommands.contains(command.charAt(0))) {
locationInstance.moveLocation(command);
} else {
Expand Down

0 comments on commit d9485d4

Please sign in to comment.