FIAP (IEEE1888) library

Dependents:   Fetch_IEEE1888_Storage IEEE1888_MULTI_SENSOR_GW

Fork of FiapV2 by Yasushi TAUCHI

Revision:
14:a9ec0e6e22c8
Parent:
13:13cceccf6bfb
Child:
15:3bd6f70e57e2
--- a/fiap.cpp	Sun Feb 24 05:53:20 2013 +0000
+++ b/fiap.cpp	Sun Feb 24 05:57:19 2013 +0000
@@ -236,16 +236,12 @@
         myprintf("error\n\r");
     }
     return 0;
+}
+#endif //USE_FETCH_MULTI
 
-#else
-    return -1;
-#endif //USE_FETCH_MULTI
-}
-
+#if USE_FETCH_ONLY_1
 int FIAP::fetch_last_data(struct fiap_element* v)
 {
-#if USE_FETCH_ONLY_1
-
     HTTPClient http;
     int ll;
     char rstr[800];
@@ -331,11 +327,8 @@
         myprintf("error\n\r");
     }
     return 0;
-
-#else
-    return -1;
+}
 #endif //USE_FETCH_ONLY_1
-}
 
 int FIAP::post(struct fiap_element* v, unsigned int esize)
 {