diff options
author | Federico Fissore <f.fissore@arduino.cc> | 2013-07-03 13:43:47 +0200 |
---|---|---|
committer | Federico Fissore <f.fissore@arduino.cc> | 2013-07-03 13:43:47 +0200 |
commit | 47722c16f5d01d45be7ef8e52921c3e5ef288ff4 (patch) | |
tree | 844158fa2fed3956f495d0731be0ecdcc3e356d5 /libraries | |
parent | 296d8d1477215dbe410c216acd3ad3465de198f3 (diff) |
YunServer: added default port number 5555
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/Bridge/YunServer.h | 2 | ||||
-rw-r--r-- | libraries/Bridge/examples/BridgeNew/BridgeNew.ino | 4 |
2 files changed, 3 insertions, 3 deletions
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 <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); |