Non so se vale la pena postare qui, però ho un problema. Praticamente ho aggiornato tutto il mio codice con la nuova libreria, ovviamente con IDE 1.6.12 compilato e tutto e nessun errore ovviamente. Poi dopo quando cerco di accedere all'IP impostato da me non visualizzo niente, come mai?
Queste le definizioni
//SD ED ETHETNET SHIELD///////////////
#define SD_SS 4
WebServer webserver;
#include <WebbinoInterfaces/WIZ5x00.h>
NetworkInterfaceWIZ5x00 netint;
//EthernetServer server(80);
// Configurazione Network
#define IP_ADDRESS 192,168,1,51 //l'ip usato dalla scheda ethernet
//#define DNS_ADDRESS 208,67,222,222
#define GW_ADDRESS 192,168,1,1 //l'ip del vostro modem
#define NETMASK 255,255,255,0 //la netmask della vostra rete
E nel setup
Serial.println (F("Using Webbino " WEBBINO_VERSION));
IPAddress ip (IP_ADDRESS);
//IPAddress dns (DNS_ADDRESS);
IPAddress gw (GW_ADDRESS);
IPAddress mask (NETMASK);
Serial.println (F("Configuring static IP address"));
byte mac[6] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55};
bool ok = netint.begin (mac, ip, dns, gw, mask);
if (!ok) {
Serial.println (F("Failed to configure static IP address"));
while (42)
;
} else {
Serial.println (F("Static IP configuration done:"));
Serial.print (F("- IP: "));
Serial.println (netint.getIP ());
Serial.print (F("- Netmask: "));
Serial.println (netint.getNetmask ());
Serial.print (F("- Default Gateway: "));
Serial.println (netint.getGateway ());
Serial.print (F("Initializing SD card..."));
if (!webserver.begin (netint, NULL, tags, SD_SS)) {
Serial.println (F(" failed"));
while (42)
;
}
Serial.println (F(" done"));
}
Sicuramente sbaglio qualcosa nel setup. Poi con la seriale mi scrive che tutto è stato configurato, sia ip che scheda SD, insomma tutto "done".