CS_ReadParameter Function

C

void CS_ReadParameter(CS_MemoryItemId_t parameterId, void *memoryPtr);

Description

Gets the value of the parameter specified by its ID and writes it to the provided address in memory

\ingroup cs_functions

The function reads the value of a ConfigServer parameter specified by its ID. A parameter ID is a constant which name can be obtained by adding "_ID" suffix to the name of the parameter. For example, the identifier of the CS_NWK_PANID parameter is CS_NWK_PANID_ID.

The function copies the value to the location in memory specified by the second argument.

For example, reading the extended address of the device is performed this way:

ExtAddr_t ownExtAddr;
CS_ReadParameter(CS_UID_ID, &ownExtAddr);

Parameters

ParamDescription
parameterIdthe ID of the parameter to be read
memoryPtra pointer to which the parameter's value is written

Returns

None