From c0e68bc9e206c02b9bd0859feca3c10a1180942e Mon Sep 17 00:00:00 2001 From: Julien Vermillard Date: Wed, 5 Apr 2023 18:33:15 +0200 Subject: [PATCH] more code cleanup --- content/english/post/object25.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/english/post/object25.md b/content/english/post/object25.md index b819611..a04b861 100644 --- a/content/english/post/object25.md +++ b/content/english/post/object25.md @@ -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) { @@ -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); } }