aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge
diff options
context:
space:
mode:
authorFederico Fissore <f.fissore@arduino.cc>2013-07-03 13:43:47 +0200
committerFederico Fissore <f.fissore@arduino.cc>2013-07-03 13:43:47 +0200
commit47722c16f5d01d45be7ef8e52921c3e5ef288ff4 (patch)
tree844158fa2fed3956f495d0731be0ecdcc3e356d5 /libraries/Bridge
parent296d8d1477215dbe410c216acd3ad3465de198f3 (diff)
YunServer: added default port number 5555
Diffstat (limited to 'libraries/Bridge')
-rw-r--r--libraries/Bridge/YunServer.h2
-rw-r--r--libraries/Bridge/examples/BridgeNew/BridgeNew.ino4
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);