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) {