mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/wakaama/client: allow to specify server instance ID
This commit is contained in:
parent
4eb3ef4b4f
commit
70c4c6b8c1
@ -31,12 +31,11 @@ lwm2m_object_t *get_server_object(int server_id, const char *binding,
|
||||
int lifetime, bool storing);
|
||||
lwm2m_object_t *lwm2m_get_object_device(void);
|
||||
|
||||
lwm2m_object_t *lwm2m_client_get_server_object(
|
||||
lwm2m_client_data_t *client_data)
|
||||
lwm2m_object_t *lwm2m_client_get_server_object(lwm2m_client_data_t *client_data,
|
||||
int server_id)
|
||||
{
|
||||
(void)client_data;
|
||||
lwm2m_object_t *ret;
|
||||
int server_id = CONFIG_LWM2M_SERVER_ID;
|
||||
int lifetime = CONFIG_LWM2M_DEVICE_TTL;
|
||||
|
||||
ret = get_server_object(server_id, CONFIG_LWM2M_DEVICE_BINDINGS, lifetime,
|
||||
|
@ -45,6 +45,7 @@ extern "C" {
|
||||
* net/lwm2m.h
|
||||
*
|
||||
* @param[in, out] client_data Pointer to a LwM2M client data descriptor
|
||||
* @param[in] server_id Server ID (SID) to assign to the new instance
|
||||
*
|
||||
* @return Pointer to the created object
|
||||
* @return NULL otherwise
|
||||
|
Loading…
Reference in New Issue
Block a user