Allora ho provato ad utilizzare getStaticIp
// ethernet interface mac address
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };
// ethernet interface ip address
static byte myip[] = { 192,168,0,200 };
// gateway ip address
static byte gwip[] = { 192,168,0,1 };
// remote website ip address and port
static byte hisip[] = { 74,125,79,99 };
// remote website name
char website[] PROGMEM = "google.com";
gli ip specificati sono in linea con la classe della mia rete ma ottengo dal ping:
PING 192.168.0.200
PING 192.168.0.200 (192.168.0.200): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
mentre dall'output serial:
[getStaticIP]
Failed to access Ethernet controller
Server: 74.125.79.99
In modalità DHCP sono sicuro che è attivo perchè la mia rete attualmente funziona solo in DHCP sono certo che l'ip 192.168.0.200 non è stato assegnato a nessuno.