My Arduino project is to have an Arduino nano, on that Arduino nano I connect it to a Windows laptop and there's an ethernet cable connected to the laptop. The Arduino nano has code uploaded to it from the Arduino IOT cloud because I am trying to use a skill on the arduino cloud related to the LED on the breadboard. I want to use an Amazon Alexa app that is connected to the cloud virtually somehow and when I click the on and off button on the app the LED on the Arduino should turn on and off. However, the Amazon Alexa app says that the server is unresponsive. Attached is our code, an image of the breadboard, and the error on the app. If anyone could please help that would be much appreciated because I don't know anything abt arduinos or anything this is my first time!
#include <Ethernet.h>
// Ethernet credentials
byte mac[] = { 0xAC, 0x1A, 0x3D, 0x07, 0x5F, 0x4E }; // Replace with your own MAC address
IPAddress ip(192, 168, 0, 131); // Replace with your desired IP address
IPAddress gateway(192, 168, 0, 1); // Replace with your router's IP address
IPAddress subnet(255, 255, 255, 0); // Replace with your subnet mask
// Define Pin for LED
int led = 8;
void setup() {
Serial.begin(9600);
while (!Serial);
// Set the LED as output
pinMode(LED_BUILTIN, OUTPUT);
pinMode(led, OUTPUT);
// Start Ethernet with a fixed IP address
Ethernet.begin(mac, ip, gateway, gateway, subnet);
// You're connected now, so print out the data
Serial.println("You're connected to the network");
Serial.println("---------------------------------------");
}
void loop() {
// Your LED Control logic goes here
delay(200);
}