mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Fix ssdp (#5750)
* Update ESP8266SSDP.h Fix SSDP bug: The response to M-Search Packet with ST field set to UUID should be with the UUID not the Device Type Integrated 'uuid:' prefix into the char array of the _uuid * Update ESP8266SSDP.cpp Fix SSDP bug: The response to M-Search Packet with ST field set to UUID should be with the UUID not the Device Type Integrated 'uuid:' prefix into the char array of the _uuid * include 'uuid:' in format String and in flash * Update ESP8266SSDP.cpp
This commit is contained in:
committed by
david gauchard
parent
8961bba94e
commit
e829221833
@ -35,7 +35,7 @@ License (MIT license):
|
||||
|
||||
class UdpContext;
|
||||
|
||||
#define SSDP_UUID_SIZE 37
|
||||
#define SSDP_UUID_SIZE 42
|
||||
#define SSDP_SCHEMA_URL_SIZE 64
|
||||
#define SSDP_DEVICE_TYPE_SIZE 64
|
||||
#define SSDP_FRIENDLY_NAME_SIZE 64
|
||||
@ -66,17 +66,17 @@ class SSDPClass{
|
||||
void setDeviceType(const String& deviceType) { setDeviceType(deviceType.c_str()); }
|
||||
void setDeviceType(const char *deviceType);
|
||||
|
||||
/*To define a custom UUID, you must call the method before begin(). Otherwise an automatic UUID based on CHIPID will be generated.*/
|
||||
void setUUID(const String& uuid) { setUUID(uuid.c_str()); }
|
||||
void setUUID(const char *uuid);
|
||||
/*To define a custom UUID, you must call the method before begin(). Otherwise an automatic UUID based on CHIPID will be generated.*/
|
||||
void setUUID(const String& uuid) { setUUID(uuid.c_str()); }
|
||||
void setUUID(const char *uuid);
|
||||
|
||||
void setName(const String& name) { setName(name.c_str()); }
|
||||
void setName(const String& name) { setName(name.c_str()); }
|
||||
void setName(const char *name);
|
||||
void setURL(const String& url) { setURL(url.c_str()); }
|
||||
void setURL(const char *url);
|
||||
void setSchemaURL(const String& url) { setSchemaURL(url.c_str()); }
|
||||
void setSchemaURL(const char *url);
|
||||
void setSerialNumber(const String& serialNumber) { setSerialNumber(serialNumber.c_str()); }
|
||||
void setSerialNumber(const String& serialNumber) { setSerialNumber(serialNumber.c_str()); }
|
||||
void setSerialNumber(const char *serialNumber);
|
||||
void setSerialNumber(const uint32_t serialNumber);
|
||||
void setModelName(const String& name) { setModelName(name.c_str()); }
|
||||
@ -108,6 +108,7 @@ class SSDPClass{
|
||||
uint16_t _respondToPort;
|
||||
|
||||
bool _pending;
|
||||
bool _st_is_uuid;
|
||||
unsigned short _delay;
|
||||
unsigned long _process_time;
|
||||
unsigned long _notify_time;
|
||||
|
Reference in New Issue
Block a user