begin()

Description

Tells the server to begin listening for incoming connections. This should be called in the setup() function of your sketch.

Syntax

webserver.begin()

Parameters

None

Returns

None

Examples

#include "WebServer.h"
WebServer webserver; // defaults to no prefix, port 80

void setup() {
  // Ethernet stuff here, e.g. set MAC and IP address
  webserver.begin();
}

void loop() {
  webserver.processConnection();
}

« back to Webduino

Reply

Your email address will not be published. Required fields are marked *