We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2185bb commit ade47e2Copy full SHA for ade47e2
libraries/ESP8266SSDP/ESP8266SSDP.h
@@ -46,6 +46,9 @@ class UdpContext;
46
#define SSDP_MODEL_VERSION_SIZE 32
47
#define SSDP_MANUFACTURER_SIZE 64
48
#define SSDP_MANUFACTURER_URL_SIZE 128
49
+#define SSDP_INTERVAL_SECONDS 1200
50
+#define SSDP_MULTICAST_TTL 2
51
+#define SSDP_HTTP_PORT 80
52
53
typedef enum {
54
NONE,
@@ -103,9 +106,9 @@ class SSDPClass{
103
106
104
107
UdpContext* _server = nullptr;
105
108
SSDPTimer* _timer = nullptr;
- uint16_t _port = 80;
- uint8_t _ttl = 2;
- uint32_t _interval = 1200;
109
+ uint16_t _port = SSDP_HTTP_PORT;
110
+ uint8_t _ttl = SSDP_MULTICAST_TTL;
111
+ uint32_t _interval = SSDP_INTERVAL_SECONDS;
112
113
IPAddress _respondToAddr;
114
uint16_t _respondToPort = 0;
0 commit comments