leshan: Problem of sending msg to client on Linux Platform
i’m using the client and server demo (). in the server demo,i add this to get some info from client (https://github.com/eclipse/leshan/wiki/Getting-Started-:-Server).
public void registered(Registration registration, Registration previousReg,
Collection<Observation> previousObsersations) {
System.out.println("new device: " + registration.getEndpoint());
try {
**ReadResponse response = server.send(registration, new ReadRequest(3,0,13));**
if (response.isSuccess()) {
System.out.println("Device time:" + ((LwM2mResource)response.getContent()).getValue());
}else {
System.out.println("Failed to read:" + response.getCode() + " " + response.getErrorMessage());
}
} catch (InterruptedException e) {
e.printStackTrace();
}
}
this works fine on windows,but failed on linux(centos /ubuntu)… : (
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (7 by maintainers)
No, It still does not work with linux.
I use leshan only on linux and the sandbox https://leshan.eclipse.org/#/clients is on linux too. I don’t think the issue is relative to linux…
Could you share your logs ?
You can activate more logs.
-Dorg.slf4j.simpleLogger.defaultLogLevel=debug