1
0
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:
Leandro Lanzieri 2021-03-19 11:34:33 +01:00
parent 4eb3ef4b4f
commit 70c4c6b8c1
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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