Skip to content

Commit

Permalink
more code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jvermillard committed Apr 5, 2023
1 parent 51dcc0c commit c0e68bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/english/post/object25.md
Expand Up @@ -99,8 +99,6 @@ So by default, in Leshan, we do nothing. In the user server code, I added a regi
}
prefix = prefix.replaceAll("/", "");

// add a new endpoint
LOG.debug("Adding endpoint '{}'", deviceId);

// we decide if it's a registration update only if the information didn't changed
if (gatewayRegUpdate != null) {
Expand All @@ -110,6 +108,8 @@ So by default, in Leshan, we do nothing. In the user server code, I added a regi
return;
}
}
// add a new endpoint
LOG.debug("Adding endpoint '{}'", deviceId);
server.registerEndIotDevice(registration.getId(), deviceId, prefix, iotDeviceObjects);
}
}
Expand Down

0 comments on commit c0e68bc

Please sign in to comment.