mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-06 01:08:25 +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 {
|
class YunServer : public Server {
|
||||||
public:
|
public:
|
||||||
// Constructor with a user provided BridgeClass instance
|
// Constructor with a user provided BridgeClass instance
|
||||||
YunServer(uint16_t port, BridgeClass &_b = Bridge);
|
YunServer(uint16_t port = 5555, BridgeClass &_b = Bridge);
|
||||||
|
|
||||||
void begin();
|
void begin();
|
||||||
YunClient accept();
|
YunClient accept();
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
#include <Bridge.h>
|
#include <Bridge.h>
|
||||||
#include <YunServer.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.
|
// will forward there all the HTTP requests for us.
|
||||||
YunServer server(5555);
|
YunServer server;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user