  *  NodeMCU采集到的tilt传感器电压值发到MQTT Client
  * Tutorial URL 
  * CopyRight John Yu
+ * 
+ * Tutorial: http://kookye.com/2016/12/13/use-nodemcu-to-send-push-button-signal-to-remote-mqtt-client/
+ * 
+ *  weitergepfuscht M.Schmidt
+ *
  */
+
+
+ 
 #include <ESP8266WiFi.h>
-#include "/home/smarkus/Arduino/libraries/pubsubclient/src/PubSubClient.h"
 
 int BUTTON_PIN = 5; 
 const char* ssid = "Forum";

  if (now - lastMsg > 50) {
     lastMsg = now;
     status=digitalRead(BUTTON_PIN);
     String msg="K";
     if(status==HIGH )
     {
          char message[1];
          msg.toCharArray(message,58);
          Serial.println(message);
          
          if(lastStatus==0){
            //publish sensor data to MQTT broker
            client.publish("/theringbot/ring", message);
          }
          
          lastStatus = 1;


void callback(char* topic, byte* payload, unsigned int length) 
{

  delay(200);
} //end callback

void reconnect() {
