Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] About Leshan Project

Thanks a lot Simon! Now is working, we can continue with the project.

2015-03-16 8:09 GMT-03:00 Simon Bernard <contact@xxxxxxxxxxxxxxx>:
Hi Luis,
    Don't worry your english can not be worst than mine ;)
    The client README is a bit confusing :
	java -jar target/leshan-client-example-*-SNAPSHOT-jar-with-dependencies.jar localhost 9000 localhost 5683
    The client will create a datagram socket, bound to the local address given as the first parameter.
    Most of time, you don't really need to specified it and want to let the kernel choose it for you (in this case you should pass "0").
    If you want to connect the client to external server (e.g. leshan.eclipse.org) you use this :
	java -jar target/leshan-client-example-*-SNAPSHOT-jar-with-dependencies.jar 0 9000 leshan.eclipse.org 5683
    I will change the API and the README to make that less confusing.
Simon

Le 16/03/2015 01:07, Luis Fernando Condorí a écrit :
Hello to everybody:

I'm sorry for my bad english. My name is Luis, I live in Argentina and I am software developer. I'm currently working on a project that attempts to monitor the temperature of stoves snuff, and I want to establish the connection with sensors using coap + lwm2m. I'm totally new in this, and all I read takes me to Leshan Project, I want to use this platform to carry out the project that we are developing with my coworkers. We started compiling and debugging leshan-client-example, but don't get to establish the connection to the Leshan server. We have tried many ways but it only works when we set both the client and the server with the ip 127.0.0.1 or localhost, if I try to connect the client to a server in another ip, it always tries to connect to localhost. I contact you to ask if it is a recurring problem of easy solution or am I doing something wrong, we could not find information about it, and for that reason is that i contact you directly. The exception that is constantly presented as follows:

mar 14, 2015 1:57:22 AM org.eclipse.californium.core.network.config.NetworkConfig createStandardWithFile
INFORMACIÓN: Loading standard properties from file Californium.properties
mar 14, 2015 1:57:22 AM org.eclipse.californium.core.CoapServer start
INFORMACIÓN: Starting server
mar 14, 2015 1:57:22 AM org.eclipse.californium.core.network.CoAPEndpoint start
INFORMACIÓN: Starting endpoint at localhost/127.0.0.1:9000
Exception in thread "main" java.lang.RuntimeException: Request Timed Out: coap://localhost/rd?ep=d4a5b992-cef8-4cc2-b933-bbf494e5877f (timeout)
at org.eclipse.leshan.client.californium.impl.CaliforniumLwM2mClientRequestSender$SyncRequestObserver.waitForResponse(CaliforniumLwM2mClientRequestSender.java:219)
at org.eclipse.leshan.client.californium.impl.CaliforniumLwM2mClientRequestSender.send(CaliforniumLwM2mClientRequestSender.java:79)
at org.eclipse.leshan.client.californium.LeshanClient.send(LeshanClient.java:99)
at org.eclipse.leshan.client.example.LeshanClientExample.<init>(LeshanClientExample.java:82)
at org.eclipse.leshan.client.example.LeshanClientExample.main(LeshanClientExample.java:67)

I would greatly appreciate you can give me a help to continue this project . Thanks again and sorry for my English.

Luis Condori


_______________________________________________
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