Any information which could help to understand. (log, wireshark
capture, ...)
Le 24/03/2016 14:51, RAJESH KUMAR S.R a
écrit :
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.
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.
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"
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.