I have simple MQTT application on Arduino ESP8266 device. Can't find why code line below not formats MQTT retain message:
pubsubClient.publish(topic.c_str(), payload.c_str(), true);
Message just not delivered to remoter device after it is connected after some delay when message was transmitted from ESP8266. Software MQTT client that works on PC works fine in this case.