Fix Artik demo example link error by
authorSanjeev BA <iamsanjeev@gmail.com>
Mon, 28 Aug 2017 09:38:22 +0000 (18:38 +0900)
committerSanjeev BA <iamsanjeev@gmail.com>
Tue, 29 Aug 2017 08:41:05 +0000 (17:41 +0900)
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 <iamsanjeev@gmail.com>
apps/examples/artik_demo/Kconfig
apps/examples/artik_demo/artik_demo.c

index b1d0a8f..ffb007e 100644 (file)
@@ -5,6 +5,7 @@
 
 menuconfig EXAMPLES_ARTIK_DEMO
        bool "Artik API Demo Example"
+       depends on DM
        default n
        ---help---
                Enable the artik demo example
index 4ad5ca0..9c898cd 100644 (file)
@@ -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);