Commit a555304e7bbc1114e04f66e6434e979f593bc45e

Authored by Maria Jorba Brosa
1 parent 1e5e0524

--no commit message

Project/applications/smartcities/main.c
... ... @@ -18,6 +18,13 @@ void initLibwismart()
18 18 libwismart_Init(hwif);
19 19 }
20 20  
  21 +static void wifi_connect_result_cb(int result)
  22 +{
  23 + DEBUG("WiFi Connect indication: %s\r\n", (result == WISMART_WIFI_CONNECTED) ? "Connected": "Failed");
  24 +
  25 +
  26 +}
  27 +
21 28 int main(void)
22 29 {
23 30 wpa_param *wpa;
... ... @@ -31,7 +38,7 @@ int main(void)
31 38 libwismart_PowerSave_HigherProfile(TRUE);
32 39 libwismart_WiFiInit();
33 40 //falta definir les variables de la xarxa
34   - libwismart_WiFiConnectEnterprise(NETWORK_SSID, &wpa, wificonnect_callback wificb);
  41 + libwismart_WiFiConnectEnterprise(NETWORK_SSID, wpa, wifi_connect_result_cb);
35 42  
36 43 if(libwismart_IsConnected() == WISMART_NOT_CONNECTED)
37 44 {
... ...