Bonsoir à toutes et tous.
Débutant sur Arduino, je me suis lancé dans un petit projet à base d'une carte MEGA 2560 et d'un shield ethernet W5100.
L'idée est de pouvoir, depuis la maison (via des pages web), contrôler et commander quelques trucs dans le garage. (température, éclairage extérieur, ...)
J'ai déjà réussi à lire la t° d'un DTH11, mesurer le niveau de lumière via une cellule LDR, afficher des messages sur un écran LCD 2 lignes 16 caractères, et piloter une LED depuis une page web.
Avant d'additionner les fonctionnalités, je fais des essais par petit bout.
A terme, l'idée est d'afficher une/des page(s) un peu plus fun qu'un simple formulaire.
Et là je suis à la recherche d'exemple de projets dans lequel la page web est stockée dans la carte SD du shield ethernet.
J'ai trouvé celui là par exemple: http://arduino.cc/forum/index.php/topic,51138.0.html
Mais quand je lance la vérification du code, j'obtiens les messages d'erreur suivants:
sketch_WebServer2_0.cpp:46:19: error: no matching function for call to ‘Server::Server(int)’
/usr/share/arduino/hardware/arduino/cores/arduino/Server.h:4:29: note: candidates are: Server::Server()
/usr/share/arduino/hardware/arduino/cores/arduino/Server.h:4:29: note: Server::Server(const Server&)
sketch_WebServer2_0.cpp:46:14: error: cannot declare variable ‘server’ to be of abstract type ‘Server’
/usr/share/arduino/hardware/arduino/cores/arduino/Server.h:4:29: note: because the following virtual functions are pure within ‘Server’:
/usr/share/arduino/hardware/arduino/cores/arduino/Print.h:48:20: note: virtual size_t Print::write(uint8_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Server.h:6:16: note: virtual void Server::begin()
sketch_WebServer2_0.cpp: In function ‘void loop()’:
sketch_WebServer2_0.cpp:123:26: error: ‘class Server’ has no member named ‘available’
sketch_WebServer2_0.cpp:123:10: error: cannot declare variable ‘client’ to be of abstract type ‘Client’
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:7:30: note: because the following virtual functions are pure within ‘Client’:
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:12:18: note: virtual size_t Client::write(uint8_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:13:18: note: virtual size_t Client::write(const uint8_t*, size_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:14:15: note: virtual int Client::available()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:15:15: note: virtual int Client::read()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:17:15: note: virtual int Client::peek()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:18:16: note: virtual void Client::flush()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:10:15: note: virtual int Client::connect(IPAddress, uint16_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:11:15: note: virtual int Client::connect(const char*, uint16_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:16:15: note: virtual int Client::read(uint8_t*, size_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:19:16: note: virtual void Client::stop()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:20:19: note: virtual uint8_t Client::connected()
/usr/share/arduino/hardware/arduino/cores/arduino/Client.h:21:11: note: virtual Client::operator bool()
Pour le coup, j'en appelle à votre aide.
Avez-vous une explication possible sur ces messages d'erreur ?
Avez-vous connaissance d'autre projets de pages web embarquées sur la carte SD ?