The documentation says there's a function WiFi.setAutoConnect() but when I try to use it the compiler reports "no matching function". It feels as if I've simply got an old version of the WiFi library but I can't see how to update it (or indeed which version to update to). I've uninstalled the arduino ide and reinstalled it and I've uninstalled the esp8266 board within it and reinstalled it. I'm now running:
Arduino IDE 1.8.5
Board ESP8266 2.3.0
and I believe the WiFi stuff is all part of the board package.
Can someone point me int he right direction please?