From f95a9668748e02a13d550baf268c7e2637a6fbe9 Mon Sep 17 00:00:00 2001 From: Sanjeev BA Date: Mon, 28 Aug 2017 18:38:22 +0900 Subject: [PATCH] Fix Artik demo example link error by 1. fixing typos in wifi API. 2. Replacing an get_security_config with getSecurityConfig. 3. Making 'dm' a dependency for this example. Signed-off-by: Sanjeev BA --- apps/examples/artik_demo/Kconfig | 1 + apps/examples/artik_demo/artik_demo.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/examples/artik_demo/Kconfig b/apps/examples/artik_demo/Kconfig index b1d0a8f..ffb007e 100644 --- a/apps/examples/artik_demo/Kconfig +++ b/apps/examples/artik_demo/Kconfig @@ -5,6 +5,7 @@ menuconfig EXAMPLES_ARTIK_DEMO bool "Artik API Demo Example" + depends on DM default n ---help--- Enable the artik demo example diff --git a/apps/examples/artik_demo/artik_demo.c b/apps/examples/artik_demo/artik_demo.c index 4ad5ca0..9c898cd 100644 --- a/apps/examples/artik_demo/artik_demo.c +++ b/apps/examples/artik_demo/artik_demo.c @@ -279,7 +279,7 @@ static int wifiAutoConnectInit() /* * Check WifiIsConnected or not */ - if (WifiIsConnected(&result, NULL) != SLSI_STATUS_SUCCESS) { + if (WiFiIsConnected(&result, NULL) != SLSI_STATUS_SUCCESS) { /* Error : failed to WifiIsConnected */ printf("failed to WifiIsConnected\n"); return -1; @@ -295,8 +295,8 @@ static int wifiAutoConnectInit() if (ret == SLSI_STATUS_SUCCESS) { printf("[AutoConnect]STA mode started\n"); ret = WiFiNetworkJoin((uint8_t*)CONFIG_AP_SSID, strlen(CONFIG_AP_SSID), NULL, - (const slsi_security_config_t *)get_security_config( - CONFIG_AP_SECURITY, CONFIG_AP_PASS)); + (const slsi_security_config_t *)getSecurityConfig( + CONFIG_AP_SECURITY, CONFIG_AP_PASS, SLSI_WIFI_STATION_IF)); sleep(1); if (ret == SLSI_STATUS_SUCCESS) { printf("[AutoConnect]Start to Join with SSID %s\n", CONFIG_AP_SSID); -- 2.7.4