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

Fork of FirmwareUpdater by Shinichiro Nakamura

Files at this revision

API Documentation at this revision

Comitter:
vinajarr
Date:
Thu Nov 13 07:40:14 2014 +0000
Parent:
3:851bd91fa0ae
Commit message:
error correction in the program

Changed in this revision

FirmwareUpdater.h Show annotated file Show diff for this revision Revisions of this file
diff -r 851bd91fa0ae -r 8bfdadb09544 FirmwareUpdater.h
--- a/FirmwareUpdater.h	Fri Nov 05 12:16:17 2010 +0000
+++ b/FirmwareUpdater.h	Thu Nov 13 07:40:14 2014 +0000
@@ -69,6 +69,7 @@
      * @param name An application name. Do not include a extention.
      * @param log True if logging.
      */
+     const std::string name;
     FirmwareUpdater(std::string url, std::string name, bool log = false);
 
     /**
@@ -97,7 +98,7 @@
      * @return Return 0 if a new firmware exists.
      */
     int exist();
-
+    int readVersionFromFile(const char *filename);
     /**
      * Execute update.
      *
@@ -117,7 +118,7 @@
     static const std::string EXT_TXT;
     static const std::string EXT_TXTTMP;
     const std::string url;
-    const std::string name;
+    
     const bool log;
     LocalFileSystem local;
     HTTPClient client;
@@ -171,7 +172,7 @@
      * @param filename file name.
      * @return A version.
      */
-    int readVersionFromFile(const char *filename);
+    //int readVersionFromFile(const char *filename);
 
     /**
      * Read a version from a URL.