Skip to content

Commit

Permalink
Updated WiFiRGBServer example
Browse files Browse the repository at this point in the history
Because of the change in the abstract Client and Server client classes,
the WiFi shield example needed to have Client declarations updated to
WiFiClient, and Server declaration updated to WiFiServer.
  • Loading branch information
tigoe committed Oct 6, 2011
1 parent f77ea06 commit 04226a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapter6/project12/WifiRGBServer/WifiRGBServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ char password[] = "secretpassword"; // the password you’re using to connect

int status = WL_IDLE_STATUS; // the Wifi radio's status

Server server(80);
WiFiServer server(80);
int lineLength = 0; // length of the incoming text line


Expand Down Expand Up @@ -45,7 +45,7 @@ void setup() {

void loop() {
// listen for incoming clients
WifiClient client = server.available();
WiFiClient client = server.available();
if (client) {
Serial.println("Got a client");

Expand Down Expand Up @@ -82,7 +82,7 @@ void loop() {
}


void makeResponse(Client thisClient) {
void makeResponse(WiFiClient thisClient) {
thisClient.print("HTTP/1.1 200 OK\n");
thisClient.print("Content-Type: text/html\n\n");
thisClient.print("<html><head><meta http-equiv=\"refresh\" content=\"3\">");
Expand Down

0 comments on commit 04226a7

Please sign in to comment.