Awa LWM2M C API (0.2.5)  
Functions
AwaServerWriteAttributesOperation_AddAttributeAs___

Adds a path and value to a Write Attributes operation, as a request to change the value of a object, object instance or resource level attribute on the specified path. More...

Functions

AwaError AwaServerWriteAttributesOperation_AddAttributeAsInteger (AwaServerWriteAttributesOperation *operation, const char *clientID, const char *path, const char *link, AwaInteger value)
 
AwaError AwaServerWriteAttributesOperation_AddAttributeAsFloat (AwaServerWriteAttributesOperation *operation, const char *clientID, const char *path, const char *link, AwaFloat value)
 

Detailed Description

Adds a path and value to a Write Attributes operation, as a request to change the value of a object, object instance or resource level attribute on the specified path.

Parameters
[in]operationThe Write Attributes operation to add the path and attribute value to.
[in]clientIDThe endpoint name of the client to update the changed attributes.
[in]pathThe path of the resource requested for change.
[in]linkThe link identifying which attribute to be set (currently limited to "pmin", "pmax", "gt", "lt", and "stp").
[in]valueThe new value of the resource.
Returns
AwaError_Success on success.
AwaError_OperationInvalid if the operation is invalid.
AwaError_PathInvalid if the specified path is invalid.
AwaError_TypeMismatch if the specified path refers to a resource with a non-corresponding type.
AwaError_NotDefined if the specified path refers to an object or resource that is not defined.

Function Documentation

AwaError AwaServerWriteAttributesOperation_AddAttributeAsInteger ( AwaServerWriteAttributesOperation *  operation,
const char *  clientID,
const char *  path,
const char *  link,
AwaInteger  value 
)
AwaError AwaServerWriteAttributesOperation_AddAttributeAsFloat ( AwaServerWriteAttributesOperation *  operation,
const char *  clientID,
const char *  path,
const char *  link,
AwaFloat  value 
)