aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-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);