wifi shield programming

Je viens d'acheter la carte wifi (Wifi Shield)
Je découvre également le concept "Arduino"

J'essaie l'exemple "opening example network" (le code fourni sur le site arduino)
#include <WiFi.h>

char ssid[] = "yourNetwork"; // the name of your network
int status = WL_IDLE_STATUS; // the Wifi radio's status

void setup() {
// initialize serial:
Serial.begin(9600);

// attempt to connect to an open network:
Serial.println("Attempting to connect to open network...");
status = WiFi.begin(ssid);

// if you're not connected, stop here:
if ( status != WL_CONNECTED) {
Serial.println("Couldn't get a wifi connection");
while(true);
}
// if you are connected :
else {
Serial.print("Connected to the network");
}
}

void loop() {
// do nothing
}
...

(alterwifi) est le nom donné à mon fichier...

Le code ne compile pas...

alterwifi:3: error: 'WL_IDLE_STATUS' was not declared in this scope
alterwifi.cpp: In function 'void setup()':
alterwifi:11: error: 'WiFi' was not declared in this scope
alterwifi:14: error: 'WL_CONNECTED' was not declared in this scope

This is the English language part of the forum. You need to post your questions in English here. Or, post in the French forum.

What version of the IDE are you using? Are you absolutely sure that you downloaded the WiFi library correctly? The error messages indicate that the WiFi library is not accessible.

well.. sorry, i should write in english..

but i don't really know where i have to put the wifi folder: i've try different ways ..

is this tree folder example correct ?

Arduino/
Wifi (folder wifi from arduino website)
alterwifi.ino (my code)

or should i do
Arduino/
libraries/
Wifi (folder wifi from arduino website)
alterwifi.ino (my code)

alterwifi.ino (my code)

oups... It was just a question of folder.
Arduino/
libraries/
Wifi (folder wifi from arduino website)

alterwifi.ino (my code)

it works now.
Tks for advising me.

I have been stuck at the very same roadblock for many days (okay... so I do other things in between trying and re-trying).

I was so relieved to find this information... but somehow, even after studying this carefully and informing my actions accordingly... 'still the same problem.

I've tried a lot of variations. I'm missing something that is right under my nose... but what? What, if anything (important) is missing from the preceding? Frankly, I had already figured this out prior to seeing this... that must mean that I'm doing something wrong and I just don't see the difference between what I'm doing and what is written above. And yet... and yet... 'very strange! (and a little frustrating!) :slight_smile:

I know I'm going to get this sooner or later... Anybody have any suggestions/clarifications on the preceding posts? They seems plain enough to me... (and i you are thinking of posting (in french) but you can't be bothered to translate into english, by all means, please post in french! I will translate it for others in a follow up! :slight_smile: