Im new using the Arduino UNO WiFi and I want to connect to the networks by Code, because the Arduino UNO wants its own Wireless Network to connect using the 192.168.240.1 IP Address, but I wont that, we need to connect by code using some variables changed by the user to connect the specified network, but the WiFi Code of the library doesnt seems to work, the WiFi.begin() return always 4 (NOT CONNECTED) and algo the scanNetworks(); return zero available networks always, I thinks that the WiFi hardware its used by default for the arduino internally when propagates the Arduino UNO WiFi Netwoks, so, I need what to know for disabling the default behavior or stop it by code before manually 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.