|API|miwi_status_t MiApp_ProtocolInit(void)| |Description|This is the primary user interface function to initialize the Microchip proprietary wireless protocol,which is chosen by the application layer. Usually, this function must be called after the hardwareinitialization, before any other MiApp interface can be called.| |Pre-Condition|Hardware initialization must be done.| |Parameters|None| |Returns|Status of Initialization| |Example|/* Initialize the Protocol */<code> if (MiApp_ProtocolInit() == RECONNECTION_IN_PROGRESS) { appStates = APP_STATE_WAIT_FOR_RECONNECT_CALLBACK; }</code>| |Remarks|If RECONNECTION_IN_PROGRESS status is received, then application needs to wait forreconnection callback before proceeding to call further MiApp API’s.|
Parent topic:MiApp API Description