/* application updates wifi provisioning on wifi connect state  */
void inform_wifi_connection_state(uint8_t s)
/* application updates wifi provisioning on wifi connect state  */
void inform_wifi_connection_state(uint8_t s)
{
	wifi_connection_state = s;
	switch(wifi_connection_state)
	{
		case WIFI_CONNECTION_STATE_PROVISIONED :
			wificon_connect_noti(&wificon_handle,NOTIFY_STATE_PROVISIONEND);
			PROVISION_PRINTF("WiFi state_SUCCESS.\n");
			wifi_provision_set_state(WIFI_PROVISION_STATE_IDLE);
		break;
		case WIFI_CONNECTION_STATE_PROVISIONFAILED :
			wificon_connect_noti(&wificon_handle,NOTIFY_STATE_PROVISIONFAILED);
			PROVISION_PRINTF("WiFi state_FAILED.\n");
			wifi_provision_set_state(WIFI_PROVISION_STATE_FAILED);
		break;
		case WIFI_CONNECTION_STATE_CONNECTING :
			wificon_connect_noti(&wificon_handle,NOTIFY_STATE_WIFICONNECTING);
			PROVISION_PRINTF("WiFi state_CONNECTING.\n");
		break;
	}
}