Blynk example

Dependents:   Blynk_Example_WIZwiki-W7500

Fork of Blynk by Volodymyr Shymanskyy

Files at this revision

API Documentation at this revision

Comitter:
jcm931213
Date:
Mon Aug 14 04:44:54 2017 +0000
Parent:
16:5d8386745e22
Commit message:
W7500 Blynk Example; I arbitrarily modified TCPSocket Client.; You need to add a function to get and set socket number in TCPSocket Client.;

Changed in this revision

Adapters/BlynkMbedClient.h Show annotated file Show diff for this revision Revisions of this file
--- a/Adapters/BlynkMbedClient.h	Mon Aug 14 04:28:21 2017 +0000
+++ b/Adapters/BlynkMbedClient.h	Mon Aug 14 04:44:54 2017 +0000
@@ -66,7 +66,7 @@
 
     void disconnect() {
         isConn = false;
-        if (client->getsock() == -1) return;
+        if (client->getsock()) return;
         client->close();
         client->setsock(-1);
      }