 boolean ledOn;
 
 void callback(const MQTT::Publish& pub) {
+  Serial.println("publish");
   if(0 == strcmp(pub.payload_string().c_str(), "1")) {
     messageWaiting = true;
   } else {

    }
  }

  if ((true == messageWaiting) && (false == ledOn)) {
    digitalWrite(LED_PIN, HIGH);
    ledOn = true;
  } else {
    digitalWrite(LED_PIN, LOW);
    ledOn = false;
  }
                 
  delay(BLINK_INTERVAL_SECONDS * 1000);

}

  client.set_callback(callback);
}

int count = 0;

void loop() {
  client.loop();
