I think this is starting to sink in, but I hope someone here can confirm... It does appear to me the ESP8266 library is used for creating code that runs ON the 8266. The WiFi library is then used on the Arduino, to send/receive data with clients.
So I need to do a program using ESP8266 that puts it into AP mode. Then just do a standard program on the Arduino (in this case a Mega2560) that uses the standard WiFi.h and WiFiUDP.h to send and receive UDP packets with the clients?
Is this correct?
Regards,
Ray L.