#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_id | Portfolio object instance identifier. |
| [in] | identity_type | Type of Identity field to be written. (lwm2m_carrier_portfolio_identity_values). |
| [in] | value | Null terminated string to be written into the Identity field. |
- Return values
-
| 0 | If the Identity field has been updated successfully. |
| -EPERM | If the specified object instance ID corresponds to the Primary Host identity. |
| -EINVAL | If the input argument is a NULL pointer or an empty string, or the identity type is invalid. |
| -ENOENT | If the instance does not exist. |
| -E2BIG | If the input string is too long. |
| -ENOMEM | If it was not possible to allocate memory storage to hold the string. |