From 47722c16f5d01d45be7ef8e52921c3e5ef288ff4 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Wed, 3 Jul 2013 13:43:47 +0200 Subject: YunServer: added default port number 5555 --- libraries/Bridge/YunServer.h | 2 +- libraries/Bridge/examples/BridgeNew/BridgeNew.ino | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libraries') diff --git a/libraries/Bridge/YunServer.h b/libraries/Bridge/YunServer.h index eb16703..0a04886 100644 --- a/libraries/Bridge/YunServer.h +++ b/libraries/Bridge/YunServer.h @@ -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(); diff --git a/libraries/Bridge/examples/BridgeNew/BridgeNew.ino b/libraries/Bridge/examples/BridgeNew/BridgeNew.ino index efecda9..eceab07 100644 --- a/libraries/Bridge/examples/BridgeNew/BridgeNew.ino +++ b/libraries/Bridge/examples/BridgeNew/BridgeNew.ino @@ -11,9 +11,9 @@ #include #include -// 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); -- cgit v1.2.3-18-g5258