// Check if a client has connected
WiFiClient client = server.available();
if (!client) {
return(20);
}
Serial.println("");
Serial.println("New client");
// Wait for data from client to become available
while(client.connected() && !client.available()){
delay(1);
}
Also if you have
MDNSResponder mdns;
This needs to be removed.
the steps are the same
git clone https://github.com/esp8266/Arduino.git esp8266
cd esp8266/tools
python get.py
then you have all you need to build a binary for the ESP