Simple demo with GPIO MQTT protocol test on STM32 broker tests.mosquitto.org WIFI interface ESP8266 Issue of topic0 by pressing the button If reception of ', switching of the led If received from 'q' end of program

Dependencies:   MQTT

Revision:
21:a68bd76740f9
Parent:
20:49c9daf2b0ff
--- a/MQTTNetwork.h	Tue Jan 10 18:10:17 2017 -0600
+++ b/MQTTNetwork.h	Thu Sep 07 10:06:22 2017 +0100
@@ -26,8 +26,8 @@
         return socket->connect(hostname, port);
     }
 
-    void disconnect() {
-
+    int disconnect() {
+        return socket->close();
     }
 
 private: