k jm / Mbed OS thingspark example

Dependencies:   MbedJSONValue mbed-http HTS221

Branch:
mbed-os-5.10
Revision:
31:66704f6f17c5
Parent:
30:4825e4f38844
--- a/source/main-http-socket-reuse.cpp	Mon Oct 29 14:34:43 2018 +0800
+++ b/source/main-http-socket-reuse.cpp	Tue Oct 30 11:07:10 2018 +0800
@@ -78,6 +78,7 @@
         delete post_req;
     }
 
+    socket->close();
     delete socket;
 
     wait(osWaitForever);