Connecting Arduino Uno rev 2 to wifi

Hello everyone,

I am facing issues connecting Arduino Uno rev 2 to wifi without the cable.
I did the whole CheckFirmwareVersion and FirmwareUpdater from wifinina tools and it connects to the network with cable .

But when removing the the cable I get the following error

avrdude: usbhid_open(): No device found
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145
An error occurred while uploading the sketch

This is my code

#include <SPI.h>
#include <WiFiNINA.h>

char ssid[] = "######";
char pass[] = "######";
int keyIndex = 0;

int status = WL_IDLE_STATUS;
WiFiServer server(80);

String readString;

void setup() {
pinMode(LED_BUILTIN, OUTPUT);   
  Serial.begin(112500);

  while (status != WL_CONNECTED) {
    Serial.print("Attempting to connect to Network named: ");
    Serial.println(ssid);
    status = WiFi.begin(ssid, pass);
    delay(10000);
  }
  server.begin();

  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());
}

void loop() {
  WiFiClient client = server.available();
  if (client)
  {
            if(readString.indexOf("?lighton") > 0){
              digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
              delay(1000); 
            }
            else{
              if(readString.indexOf("?lightoff") > 0){
                digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
                delay(1000); 
              }
            }           
            readString="";

            delay(1);
            client.stop();
          }
        }```

I am using windows 10 .
Any suggestions plz .

Sorry this got inside the code by mistake when writing the Q

I would say that the JTAG header is not supplying power, or the power pin is not connected!

Hello,
Please be more specific with your question. The cable = the USB cable, another power cable or an ethernet cable (if you have an Ehternet shield).
Sometimes (in my case) calling .begin() a single time and then reading the status in the loop while you await connection helps.
Best regards,
Johi.