From a555304e7bbc1114e04f66e6434e979f593bc45e Mon Sep 17 00:00:00 2001 From: Maria Jorba Brosa Date: Tue, 18 Mar 2014 12:36:14 +0000 Subject: [PATCH] --- Project/applications/smartcities/main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Project/applications/smartcities/main.c b/Project/applications/smartcities/main.c index c6da950..d38d8d2 100644 --- a/Project/applications/smartcities/main.c +++ b/Project/applications/smartcities/main.c @@ -18,6 +18,13 @@ void initLibwismart() libwismart_Init(hwif); } +static void wifi_connect_result_cb(int result) +{ + DEBUG("WiFi Connect indication: %s\r\n", (result == WISMART_WIFI_CONNECTED) ? "Connected": "Failed"); + + +} + int main(void) { wpa_param *wpa; @@ -31,7 +38,7 @@ int main(void) libwismart_PowerSave_HigherProfile(TRUE); libwismart_WiFiInit(); //falta definir les variables de la xarxa - libwismart_WiFiConnectEnterprise(NETWORK_SSID, &wpa, wificonnect_callback wificb); + libwismart_WiFiConnectEnterprise(NETWORK_SSID, wpa, wifi_connect_result_cb); if(libwismart_IsConnected() == WISMART_NOT_CONNECTED) { -- libgit2 0.22.2