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 *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>