YunServer: added default port number 5555

This commit is contained in:
Federico Fissore 2013-07-03 13:43:47 +02:00
parent 296d8d1477
commit 47722c16f5
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class YunClient;
class YunServer : public Server {
public:
// Constructor with a user provided BridgeClass instance
YunServer(uint16_t port, BridgeClass &_b = Bridge);
YunServer(uint16_t port = 5555, BridgeClass &_b = Bridge);
void begin();
YunClient accept();

View File

@ -11,9 +11,9 @@
#include <Bridge.h>
#include <YunServer.h>
// Listen on port 5555, the webserver on the Yun
// Listen on default port 5555, the webserver on the Yun
// will forward there all the HTTP requests for us.
YunServer server(5555);
YunServer server;
void setup() {
Serial.begin(9600);