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 .