YunServer: added default port number 5555
This commit is contained in:
parent
7c15bff6b6
commit
ec5ce9862e
|
@ -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…
Reference in New Issue