mal so versuchen:

Code:
while (client.connected()){}
client.stop();
statt

Code:
        delay(1000); // debug        
        //stopping client
        client.flush(); 
        client.stop();


PS: ich habe glaub ich kein nodeMCU mit Version 2.5.x