             if (!success)
                 messageQueued = true;
             memset(in_buffer, 0, sizeof(in_buffer));
-            esp8266Serial.readBytesUntil('|', in_buffer, buffer_l);
+            esp8266serial.readBytesUntil('|', in_buffer, buffer_l);
             String topic = String(in_buffer);
             memset(in_buffer, 0, sizeof(in_buffer));
-            esp8266Serial.readBytesUntil('|', in_buffer, buffer_l);
+            esp8266serial.readBytesUntil('|', in_buffer, buffer_l);
             String message = String(in_buffer);
             waitForSuccess();
             onMessage(topic, message);

// #################### setup e loop ####################

void setup() {
  esp8266Serial.begin(9600);
  esp8266Serial.setTimeout(500);
  
  while(!connected)
    checkComm();    

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