So, about a year ago when I was getting into this I did some little sketches that connected to my wifi ok using ESP32 dev boards.
More recently I've got some ESP8266 boards downloaded the libraries and copied an old sketch with WiFi and tried to compile it. No joy because the WiFi.config line needed 5 arguments. Puzzled I looked into the header file and found that I had several dotted around my C drive. The error message told me there were multiples and which one it was trying to use and sure enough in that the .config routine needed 5 arguments (no other variants (overloads)) existed. I set them up and it worked so I moved on.
Today I've gone back to create another 8266 sketch and started by copying the code block that worked recently. When I came to compile it, the error message told me that the .config needed 1, 2, 3, or 4 arguments! So, again I look at the WiFi.h files I have and I cannot find the one needed exactly 5 arguments just the one needing 1, 2, 3, or 4!
I feel I'm going mad. can anyone explain and help me out here?
I'm running on a Windows 10 PC with the main Arduino stuff in Program Files (86). The ESP32 and 8266 are in My Documents.