Awa LWM2M C API (0.2.5)  
Functions
AwaObjectDefinition_AddResourceDefinitionAs___Array

Add a resource array definition to an existing Object Definition. More...

Functions

AwaError AwaObjectDefinition_AddResourceDefinitionAsStringArray (AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaStringArray *defaultArray)
 
AwaError AwaObjectDefinition_AddResourceDefinitionAsIntegerArray (AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaIntegerArray *defaultArray)
 
AwaError AwaObjectDefinition_AddResourceDefinitionAsFloatArray (AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaFloatArray *defaultArray)
 
AwaError AwaObjectDefinition_AddResourceDefinitionAsBooleanArray (AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaBooleanArray *defaultArray)
 
AwaError AwaObjectDefinition_AddResourceDefinitionAsTimeArray (AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaTimeArray *defaultArray)
 
AwaError AwaObjectDefinition_AddResourceDefinitionAsOpaqueArray (AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaOpaqueArray *defaultArray)
 
AwaError AwaObjectDefinition_AddResourceDefinitionAsObjectLinkArray (AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaObjectLinkArray *defaultArray)
 

Detailed Description

Add a resource array definition to an existing Object Definition.

Paths are not used here as Object Instance IDs are not relevant.

Parameters
[in]objectDefinitionA pointer to an Object Definition to add the Resource Definition to.
[in]resourceIDThe numeric resource ID to define.
[in]resourceNameA descriptive name that is used to describe the Resource.
[in]minimumInstancesthe minimum resource instances or array elements for the resource array. If minimumInstances is greater than zero, it is a mandatory resource. If minimumInstances is zero, this is an optional resource which must be created within its object instance before being used.
[in]maximumInstancesthe maximum resource instances or array elements for the resource array.
[in]operationsThe valid operations allowed on this resource.
[in]defaultArrayThe default value for created resource arrays, and the value which a mandatory resource will be set to if a delete operation is called upon the entire resource array.
Returns
AwaError_Success on success.
AwaError_DefinitionInvalid if the Object Definition is not valid.
AwaError_AlreadyDefined if a Resource Definition already exists for the Object Definition with the same resourceID.
AwaError_IDInvalid if resourceID is negative or larger than AWA_MAX_ID.
AwaError_OutOfMemory if there is not enough memory to create the Resource Definition.

Function Documentation

AwaError AwaObjectDefinition_AddResourceDefinitionAsStringArray ( AwaObjectDefinition objectDefinition,
AwaResourceID  resourceID,
const char *  resourceName,
int  minimumInstances,
int  maximumInstances,
AwaResourceOperations  operations,
const AwaStringArray defaultArray 
)
AwaError AwaObjectDefinition_AddResourceDefinitionAsIntegerArray ( AwaObjectDefinition objectDefinition,
AwaResourceID  resourceID,
const char *  resourceName,
int  minimumInstances,
int  maximumInstances,
AwaResourceOperations  operations,
const AwaIntegerArray defaultArray 
)
AwaError AwaObjectDefinition_AddResourceDefinitionAsFloatArray ( AwaObjectDefinition objectDefinition,
AwaResourceID  resourceID,
const char *  resourceName,
int  minimumInstances,
int  maximumInstances,
AwaResourceOperations  operations,
const AwaFloatArray defaultArray 
)
AwaError AwaObjectDefinition_AddResourceDefinitionAsBooleanArray ( AwaObjectDefinition objectDefinition,
AwaResourceID  resourceID,
const char *  resourceName,
int  minimumInstances,
int  maximumInstances,
AwaResourceOperations  operations,
const AwaBooleanArray defaultArray 
)
AwaError AwaObjectDefinition_AddResourceDefinitionAsTimeArray ( AwaObjectDefinition objectDefinition,
AwaResourceID  resourceID,
const char *  resourceName,
int  minimumInstances,
int  maximumInstances,
AwaResourceOperations  operations,
const AwaTimeArray defaultArray 
)
AwaError AwaObjectDefinition_AddResourceDefinitionAsOpaqueArray ( AwaObjectDefinition objectDefinition,
AwaResourceID  resourceID,
const char *  resourceName,
int  minimumInstances,
int  maximumInstances,
AwaResourceOperations  operations,
const AwaOpaqueArray defaultArray 
)
AwaError AwaObjectDefinition_AddResourceDefinitionAsObjectLinkArray ( AwaObjectDefinition objectDefinition,
AwaResourceID  resourceID,
const char *  resourceName,
int  minimumInstances,
int  maximumInstances,
AwaResourceOperations  operations,
const AwaObjectLinkArray defaultArray 
)