The FirmwareUpdater is a mbed firmware update library with HTTP server on cloud.

Dependents:   FirmwareUpdater_TestProgram geigercounter04 firm LPC1768_up_frim

Revision:
1:0305a8120f06
Parent:
0:f9bdb06ab672
Child:
3:851bd91fa0ae
--- a/FirmwareUpdater.h	Wed Nov 03 12:57:51 2010 +0000
+++ b/FirmwareUpdater.h	Wed Nov 03 22:03:18 2010 +0000
@@ -1,6 +1,6 @@
 /**
  * =============================================================================
- * Firmware updater (Version 0.0.1)
+ * Firmware updater (Version 0.0.2)
  * =============================================================================
  * Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems)
  *
@@ -10,7 +10,7 @@
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  * copies of the Software, and to permit persons to whom the Software is
  * furnished to do so, subject to the following conditions:
- * 
+ *
  * The above copyright notice and this permission notice shall be included in
  * all copies or substantial portions of the Software.
  *
@@ -39,7 +39,7 @@
  * #include "EthernetNetIf.h"
  *
  * EthernetNetIf eth;
- * FirmwareUpdater fwup("http://mbed.org/media/uploads/shintamainjp/", "firmware", true); 
+ * FirmwareUpdater fwup("http://mbed.org/media/uploads/shintamainjp/", "firmware", true);
  *
  * // There are 2 files for the firmware.
  * //  1. firmware.txt : firmware version file.
@@ -147,6 +147,26 @@
      */
     void LOG(const char* format, ...);
 
+    /**
+     * Cleanup all bin files.
+     */
+    int cleanupAllBinFiles(void);
+
+    /**
+     * Read a version from a file.
+     *
+     * @param filename file name.
+     * @return A version.
+     */
+    int readVersionFromFile(const char *filename);
+
+    /**
+     * Read a version from a URL.
+     *
+     * @param url URL.
+     * @return A version.
+     */
+    int readVersionFromURL(const char *url);
 };
 
 #endif