framework/src/st_things/things_stack/things_stack.c
//----------------------------------------------------------------------------------
/**
 * Function definition for start scanning near by wifi ap.
 */
Function definition for start scanning near by wifi ap.
Function definition for start scanning near by wifi ap .
int things_start_scanning_ap(void)
{
	if (pthread_create_rtos(&h_thread_things_scan_ap, NULL, auto_scanning_loop, NULL, THINGS_STACK_AP_SCAN_THREAD) != 0) {
		THINGS_LOG_E(TAG, "Failed to create thread");
		return 0;
	}
	return 1;
}
int things_start_scanning_ap ( void ) { if ( pthread_create_rtos ( & h_thread_things_scan_ap , NULL , auto_scanning_loop , NULL , THINGS_STACK_AP_SCAN_THREAD ) != 0 ) { THINGS_LOG_E ( TAG , " " ) ; return 0 ; } return 1 ; }
Function definition for start scanning near by wifi ap.
Function definition for start scanning near by wifi ap .
/**
	 * Create a thread which is call wifi scan api at every 60sec interval
	 * till things is not connected to target ap.
	 */