Problem of sending msg to client on Linux Platform
See original GitHub issuei’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)… : (
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Common Linux email problems and how to fix them - Red Hat
If this error is hit by a client sending email, it's a result of SMTP authentication not being set up or set up...
Read more >How to Send a Message to Logged Users in Linux Terminal
It allows you to send a message to another user in the terminal using tty. First check the all logged on users with...
Read more >Sending & Receiving small TCP messages in Linux
In the Linux Desktop, I am using the TCP_NODELAY option which allows messages to be sent immediately, turning off the buffering algorithm. Good ......
Read more >Linux Users don't receive team messages - Microsoft Q&A
The users on Linux are using Teams web clients and cant receive messages sent to them unless they switch to windows operating system....
Read more >How to Send a Message to Logged Users in Linux Terminal?
Now to send messages to all users, use the wall command, it comes pre-installed in all Linux Distributions which will allow us to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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