Esp8266 as wifi sheild uno - with MQTT

have a look at this Actuator Unreachable and use the code from the topic.