         lastAliveCheck = millis();
         connected = false;        
     }
-    if (Serial.find("[(")) {
-        Serial.readBytes(cb, 1);
+    if (esp8266Serial.find("[(")) {
+        esp8266Serial.readBytes(cb, 1);
         if (cb[0] == 'r') {
             //ready
             if (connected) {

            //new message
            if (messageQueued)
                return;
            messageQueued = true;
            memset(in_buffer, 0, sizeof(in_buffer));
            Serial.readBytesUntil('|', in_buffer, buffer_l);
            String topic = String(in_buffer);
            memset(in_buffer, 0, sizeof(in_buffer));
            Serial.readBytesUntil('|', in_buffer, buffer_l);
            String message = String(in_buffer);
            waitForSuccess();
            onMessage(topic, message);

  analogWrite(rgbrPin, pow (2, (r / R)) - 1);
  analogWrite(rgbgPin, pow (2, (g / R)) - 1);
  analogWrite(rgbbPin, pow (2, (b / R)) - 1);
  lastPhoto = analogRead(photoPin);  
  mRgb.toCharArray(lastLed, 7);
  mqttPublish(String(MQTTid) + "/Led", mRgb, 1);  
}

void faiBeep(unsigned int millis) {
