Arduino UNO WiFi Connection Code

I don't have any experience with that specific board or library. Just to prevent any confusion for others looking into it, this is the Uno WiFi: Arduino - Home. It's a .org board, an Uno with ESP8266 on board. It uses a serial expander to allow Serial to be used by the USB port as well as for communication with the ESP8266. I don't know how the serial expander stuff works. There should be a way for you to enable/disable the ESP8266 Serial connection. If so, and if it has the standard AT firmware running on the ESP8266, I'd recommend using the WiFiESP library(GitHub - bportaluri/WiFiEsp: Arduino WiFi library for ESP8266 modules) which works very well. The only thing you have to be aware of is the library author left the debug output enabled, which is printing to Serial so this could interfere with the ESP8266 communication since that is also on Serial. You can turn it off as shown here: Logging disabled by default by per1234 · Pull Request #46 · bportaluri/WiFiEsp · GitHub.