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 38972f4 commit 51dcc0c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions content/english/post/object25.md
Expand Up @@ -97,13 +97,8 @@ So by default, in Leshan, we do nothing. In the user server code, I added a regi
LOG.warn("Invalid device ID, prefix, or IoT Device Objects, gateway '{}', object25 instance: '{}'", registration.getEndpoint(), objectInstance25);
return;
}

if (iotDeviceObjects.length == 0) {
// skip device with no object, it's not allowed, but can happen if the device is not totally initialized
LOG.debug("skipping registration for device '{}' on gateway '{}' because it's object list is empty", deviceId, registration.getEndpoint());
return;
}
prefix = prefix.replaceAll("/", "");

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

Expand Down

0 comments on commit 51dcc0c

Please sign in to comment.