void awss_demo(void) { #if 0 char ssid[PLATFORM_MAX_SSID_LEN] = { 0 }; char passwd[PLATFORM_MAX_PASSWD_LEN] = { 0 }; #define WLAN_CONNECTION_TIMEOUT (30 * 1000) //30 seconds /* after system booting, read ssid & passwd from flash */ vendor_read_ssid_passwd_from_flash(ssid, passwd); if (ssid is empty) awss_start(); /* Note: awss_start() will block until success */ #endif /* call alink_start() after system got IP address */ /* activate device after alink connnected, see activate_button_pressed */ }
static int smart_config_start(void) { awss_start(); return 0; }