Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] Clarification regarding LESHAN server and client demo

Hi,

Can you please let me know what additional information is needed for issue 1.
I am new to LWM2M, and just started by executing these demo jar files.
I have 2 windows systems which are connected via Wifi router.

IP address of server is 192.168.1.101  and command is "java -jar leshan-server-demo.jar -lh 192.168.1.101 -lp 5683"

IP address of client is 192.168.1.102  and command is "java -jar leshan-client-demo.jar -lh 192.168.1.102 -lp 5683 -u 192.168.1.101:5683"

Thanks,
Rajesh kumar S R

On Mar 23, 2016 7:30 PM, "Simon Bernard" <contact@xxxxxxxxxxxxxxx> wrote:
Hi,

1) Command lines seem ok. Without more information hard to say what happens
2) To do that you can use maven[1] or eclipse[2].
    You can also configure output log using this command line argument (in this case not need to compile):
      -Dlog4j.configurationFile=./your/own/log4j2.xml  (for leshan/LWM2M => log4j2)
      -Djava.util.logging.config.file=./your/own/logging.properties -jar (for californium/CoAP => java.util.logging)
    But if this is just to understand the CoAP flow wireshark is probably better.

Simon

[1]https://github.com/eclipse/leshan#compile--run
[2]https://github.com/eclipse/leshan#code-with-eclipse

Le 23/03/2016 08:55, RAJESH KUMAR S.R a écrit :

Hi,

I am learning LWM2M technology using Leshan.
I have downloaded the source files and demo jar files from  https://github.com/eclipse/leshan
I have few doubts regarding the demo server and demo client.


1) I am trying to run the Leshan server and client demo jar files.
When I run both server & client in the same machine, Client details are listed in the server.
But, when I start server in one machine and client in other machine (connected via WiFi), server doesn't list client details.
I am starting the server using the following command:
"java -jar leshan-server-demo.jar -lh 192.168.1.101 -lp 5683"

and client using the following command:
"java -jar leshan-client-demo.jar -lh 192.168.1.102 -lp 5683 -u 192.168.1.101:5683"

In client side wireshark, I could see client sending Coap Registration message and in 
server side wireshark, I could see the incoming Coap Registration message.
But, the details are not reflected in the WebServer page.

Can you please help me to figure out where I am going wrong?


2)  I wanted to understand the flow from Coap to LWM2M server. I am trying to put some logs in corresponding files.
Is there any way I can compile the source files using eclipse and get the client and server jar files.

Thanks,
Rajesh Kumar S R



_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev


_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev


Back to the top