1.5.3.12 SYS_WIFIPROV_GetStatus Function

C

uint8_t SYS_WIFIPROV_GetStatus ( SYS_MODULE_OBJ object)

Summary

Returns System Wi-Fi Provisioning service status.

Description

This function returns the current status of the System Wi-Fi Provisioning service.

Precondition

The SYS_WIFIPROV_Initialize function should have been called before calling this function.

Parameters

ParamDescription
objectSYS WIFIPROV object handle, returned from SYS_WIFIPROV_Initialize

Returns

return SYS_WIFIPROV_STATUS if client provided object is valid, else return SYS_WIFIPROV_OBJ_INVALID.

Example

if (SYS_WIFIPROV_STATE_WAITFORREQ == SYS_WIFIPROV_GetStatus (wifiProvServHandle))
{
    // when the SYS WIFI Provisioning module in wait for client request
}

Remarks

None