Awa LWM2M C API (0.2.5)  
Functions
Awa___Array_GetValue

Retrieves a resource instance value at the specified index of an array. More...

Functions

const char * AwaStringArray_GetValueAsCString (const AwaStringArray *array, AwaArrayIndex index)
 
AwaInteger AwaIntegerArray_GetValue (const AwaIntegerArray *array, AwaArrayIndex index)
 
AwaFloat AwaFloatArray_GetValue (const AwaFloatArray *array, AwaArrayIndex index)
 
AwaBoolean AwaBooleanArray_GetValue (const AwaBooleanArray *array, AwaArrayIndex index)
 
AwaOpaque AwaOpaqueArray_GetValue (const AwaOpaqueArray *array, AwaArrayIndex index)
 
AwaTime AwaTimeArray_GetValue (const AwaTimeArray *array, AwaArrayIndex index)
 
AwaObjectLink AwaObjectLinkArray_GetValue (const AwaObjectLinkArray *array, AwaArrayIndex index)
 

Detailed Description

Retrieves a resource instance value at the specified index of an array.

Parameters
[in]arrayA pointer to a valid resource array of the specified type.
[in]indexThe index of the resource instance to retrieve.
Returns
the value of resource instance at the specified index if it exists
NULL if the array is invalid, the index is out of range, or the resource instance at the specified index is NULL.

Function Documentation

const char* AwaStringArray_GetValueAsCString ( const AwaStringArray *  array,
AwaArrayIndex  index 
)
AwaInteger AwaIntegerArray_GetValue ( const AwaIntegerArray *  array,
AwaArrayIndex  index 
)
AwaFloat AwaFloatArray_GetValue ( const AwaFloatArray *  array,
AwaArrayIndex  index 
)
AwaBoolean AwaBooleanArray_GetValue ( const AwaBooleanArray *  array,
AwaArrayIndex  index 
)
AwaOpaque AwaOpaqueArray_GetValue ( const AwaOpaqueArray *  array,
AwaArrayIndex  index 
)
AwaTime AwaTimeArray_GetValue ( const AwaTimeArray *  array,
AwaArrayIndex  index 
)
AwaObjectLink AwaObjectLinkArray_GetValue ( const AwaObjectLinkArray *  array,
AwaArrayIndex  index 
)