ESP8266 VE.Direct serial problems

There is no reason not to publish your sketch here directly. Many people will not look at a link.
I think you need to verify that you are connected to MQTT (not just to wifi) before attempting to publish.
Also you are not using the String class correctly, though on an ESP that can hardly be an issue.