mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
ssdp fixed
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include <Arduino.h>
|
||||||
|
|
||||||
extern void SsdpInit();
|
extern void SsdpInit();
|
||||||
extern String xmlNode(String tags, String data);
|
extern String xmlNode(String tags, String data);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include <ESP8266SSDP.h>
|
//#include <ESP8266SSDP.h>
|
||||||
#include <SSDP.h>
|
#include <SSDP.h>
|
||||||
|
|
||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
@@ -33,9 +33,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