mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
ssdp
This commit is contained in:
15
src/SSDP.cpp
15
src/SSDP.cpp
@@ -1,6 +1,11 @@
|
|||||||
//#include <ESP8266SSDP.h>
|
#ifdef ESP8266
|
||||||
#include <SSDP.h>
|
#include <ESP8266SSDP.h>
|
||||||
|
#endif
|
||||||
|
#ifdef ESP32
|
||||||
|
#include <ESP32SSDP.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <SSDP.h>
|
||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
|
|
||||||
void SsdpInit() {
|
void SsdpInit() {
|
||||||
@@ -33,9 +38,9 @@ void SsdpInit() {
|
|||||||
request->send(200, "text/xml", ssdpSend);
|
request->send(200, "text/xml", ssdpSend);
|
||||||
});
|
});
|
||||||
//Если версия 2.0.0 закаментируйте следующую строчку
|
//Если версия 2.0.0 закаментируйте следующую строчку
|
||||||
//SSDP.setDeviceType("upnp:rootdevice");
|
SSDP.setDeviceType("upnp:rootdevice");
|
||||||
//SSDP.setSchemaURL("description.xml");
|
SSDP.setSchemaURL("description.xml");
|
||||||
//SSDP.begin();
|
SSDP.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
String xmlNode(String tags, String data) {
|
String xmlNode(String tags, String data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user