sohaib qamar / SWUpdate_RPC

Fork of SWUpdate by David Smart

Revision:
23:cfe84db2b2cb
Parent:
22:2a010efe00da
Child:
24:e400edb8d2ee
diff -r 2a010efe00da -r cfe84db2b2cb SWUpdate.cpp
--- a/SWUpdate.cpp	Thu Dec 29 20:16:46 2016 +0000
+++ b/SWUpdate.cpp	Thu Jun 01 11:35:49 2017 +0000
@@ -4,8 +4,6 @@
 //
 #include "mbed.h"
 #include "SWUpdate.h"
-//#include "HTTPClient.h"
-//#include "HTTPText.h"
 #include "HTTPFile.h"
 #include <stdio.h>
 
@@ -174,6 +172,7 @@
     /* Download latest version string */
     //HTTPText server_ver("test message");
     snprintf(fqurl, SW_MAX_URL, "%s/%s.txt", url, name);
+    INFO("Query %s", fqurl);
     HTTPErrorCode = http.get(fqurl, buf, sizeof(buf));
     if (HTTPErrorCode == HTTP_OK) {
         int latest_ver = -1;
@@ -191,6 +190,7 @@
                 snprintf(fqurl, SW_MAX_URL, "%s/%s.bin", url, name);
 
                 HTTPFile latest(fwfn);
+                INFO("Fetch %s", fqurl);
                 HTTPErrorCode = http.get(fqurl, &latest);
                 if (HTTPErrorCode == HTTP_OK) {
                     Integrity_t t = PassesIntegrityCheck(fwfn, cksum, fsize);