Hi,
In nRF Connect SDK there are two LWM2M samples: lwm2m_client and lwm2m_carrier. What is the difference?
/Bjorn
Hi,
In nRF Connect SDK there are two LWM2M samples: lwm2m_client and lwm2m_carrier. What is the difference?
/Bjorn
Hi!
The LWM2M client example demonstrated how to use the LWM2M protocol to connect the nRF9160 DK to any LWM2M server (for example the Leshan Demo Server).
While the LWM2M carrier example is simply a demonstration of how to utilize the LWM2M carrier library (found in ncs/nrf/lib/lwm2m_carrier).
Best regards,
Heidi
Hi Heidi,
Thanks for your response.
Then I wonder what is the LWM2M carrier library as opposed to the LWM2M client library? It is not clear to me!
BR / Bjorn
Yes, I understand that the names of the examples can be a bit confusing.
LwM2M is just a protocol. Zephyr has a LwM2M library that is utilized in the lwm2m_client sample. There is no LwM2M client library.
But the NCS team wrote an LwM2M carrier library that can be used if you want to connect to a network using the LwM2M protocol. The lwm2m_carrier sample is just a demonstration of how this can be done, using this specific library.
They are just two different samples showing how you can use the LwM2M protocol for two different use-cases.
So in short:
-The lwm2m_carrier shows the use of the LwM2Mprotocol to register to a Verizon network.
-The lwm2m_client shows the use of the LwM2M protocol, as an application layer protocol, something like the asset_tracker example but over LwM2M instead of MQTT and connecting to a LwM2M server instead of nRF Cloud.
Best regards,
Heidi
Yes, I understand that the names of the examples can be a bit confusing.
LwM2M is just a protocol. Zephyr has a LwM2M library that is utilized in the lwm2m_client sample. There is no LwM2M client library.
But the NCS team wrote an LwM2M carrier library that can be used if you want to connect to a network using the LwM2M protocol. The lwm2m_carrier sample is just a demonstration of how this can be done, using this specific library.
They are just two different samples showing how you can use the LwM2M protocol for two different use-cases.
So in short:
-The lwm2m_carrier shows the use of the LwM2Mprotocol to register to a Verizon network.
-The lwm2m_client shows the use of the LwM2M protocol, as an application layer protocol, something like the asset_tracker example but over LwM2M instead of MQTT and connecting to a LwM2M server instead of nRF Cloud.
Best regards,
Heidi