 
   serial.prints(".");
   serial.flush();
-  if(Update.writeStream(c) != respLength)
+  int writeBytes = Update.writeStream(c);
+  if(writeBytes != respLength)
   {
     serial.prints(EOLN);
     return ZERROR;

      continue;
      
    char ch = (char)c->read();
    logSocketIn(ch);
    if(ch == '\r')
      continue;
    else

    if(c->available()>=0)
    {
      uint8_t ch=c->read();
      //logSocketIn(ch); // this is ALSO not socket input!
      f.write(ch);
      respLength--;
    }
