// 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.
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!)
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!