2.2.1 WPAN_MLME_ResetReq Function

C

bool WPAN_MLME_ResetReq(bool SetDefaultPib)

Summary

Initiate MLME-RESET.request service and have it placed in the MLME-SAP queue.

Description

This function is used by the next higher layer entity to request that the MLME performs a reset operation. It initiates MLME-RESET.request service and have it placed in the MLME-SAP queue, SetDefaultPib to set all PIB values to their respective defaults.

Precondition

WPAN_Init() should have been called before calling this function.

Parameters

ParamDescription
SetDefaultPibDefines whether PIB values need to be set to its default values

Returns

true - success; false - buffer not available or queue full.

Example

bool setDefault = true;
bool retVal = false;
retVal = WPAN_MLME_ResetReq(setDefault);
if (true != retVal)
{
    printf("buffer not available or queue full");
}

Remarks

On the receipt of WPAN_MLME_ResetReq, MAC layer will perform respective operation and asynchronously invokes USR_MLME_ResetConf with proper status.