1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-04 15:24:12 +01:00
Arduino/WiFi/examples/wifi_example/wifi_example.pde
2011-02-28 13:49:08 +01:00

30 lines
435 B
Plaintext
Executable File

/*
WiFi example
A simple connection with WiFi AP with Wireless Security
information loaded in EEPROM
created 13 July 2010
by Domenico La Fauci
*/
#include <WiFi.h>
#include <EEPROM.h>
void setup()
{
Serial.begin(9600);
WiFi.begin();
if (WiFi.get_status() == WL_NO_SSID_AVAIL)
{
// SSID not present in EEPROM
char ssid[] = "Cariddi";
WiFi.begin(ssid, strlen(ssid));
}
}
void loop()
{
}