nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ lwm2m_carrier_identity_write()

int lwm2m_carrier_identity_write ( uint16_t instance_id,
uint16_t identity_type,
const char * value )

#include <lib/bin/lwm2m_carrier/include/lwm2m_carrier.h>

Set an identity in the OMA LwM2M Portfolio object Identity resource (/16/instance_id /0/identity_type ).

Parameters
[in]instance_idPortfolio object instance identifier.
[in]identity_typeType of Identity field to be written. (lwm2m_carrier_portfolio_identity_values).
[in]valueNull terminated string to be written into the Identity field.
Return values
0If the Identity field has been updated successfully.
-EPERMIf the specified object instance ID corresponds to the Primary Host identity.
-EINVALIf the input argument is a NULL pointer or an empty string, or the identity type is invalid.
-ENOENTIf the instance does not exist.
-E2BIGIf the input string is too long.
-ENOMEMIf it was not possible to allocate memory storage to hold the string.