mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
YunServer: added default port number 5555
This commit is contained in:
parent
60d19a0907
commit
53aa42351f
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user