Leshan LwM2M client - server connection issue
See original GitHub issueHi Team,
I am running one issue with the Leshan server. Please help.
I have downloaded the zephyr project from the below link to explore the LwM2M client-server scenario: https://github.com/zephyrproject-rtos/zephyr
Summary: I have compiled and run the lwm2m client sample for ‘x86’ and I was able to connect the Leshan demo server running locally in the same Linux host machine. But as soon as I add the URI of the Leshan LwM2M server in the client code which is running remotely, I am unable to connect it.
Working setup locally:
- Run the lwm2m client for x86 on a Linux machine.
- Run the Lwm2m server locally using "leshan-server-demo.jar and I can see the client connected locally at http://localhost:8080/
A problem in connection of remote server:
- In the client app, the URI of the lwm2m server “coap://leshan.eclipseprojects.io:5683” is added to connect.
- Compiled the app for x86 and tried to run.
- But I am unable to connect to the server, I am getting the below error:
net_lwm2m_rd_client: Cannot init LWM2M engine (-22)
Also, I have tried other links too like the following but no success:
- coap://leshan.eclipse.org:5783
- coap://leshan.iot-lab.info
- coap://5.39.83.206
Can you please help me with what I am missing here? I am attaching the whole error log for more information. Lwm2m_server_connection_error.txt
Thanks, Hardik
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
Yeah that I know. The port 5783 for non-secure and 5784 for secure communication. I thought the IPv4 also would be different. Okay, thanks for all your help Simon, you can close this ticket.
same machine but different coap port. (look at README to know the port 😉)