mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
Added Serial open check for Leonardo to ScanNetworks example
This commit is contained in:
parent
28da3b1d38
commit
5e9c956338
@ -10,7 +10,7 @@
|
||||
|
||||
created 13 July 2010
|
||||
by dlf (Metodo2 srl)
|
||||
modified 12 Mar 2012
|
||||
modified 2 April 2012
|
||||
by Tom Igoe
|
||||
*/
|
||||
|
||||
@ -19,8 +19,9 @@
|
||||
#include <WiFi.h>
|
||||
|
||||
void setup() {
|
||||
// initialize serial:
|
||||
// initialize serial and wait for the port to open:
|
||||
Serial.begin(9600);
|
||||
while(!Serial) ;
|
||||
|
||||
// attempt to connect using WEP encryption:
|
||||
Serial.println("Initializing Wifi...");
|
||||
@ -81,3 +82,4 @@ void listNetworks() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user