mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-26 07:02:15 +03:00
@ -45,18 +45,11 @@
|
||||
#ifndef __ESP8266MDNS_H
|
||||
#define __ESP8266MDNS_H
|
||||
|
||||
enum class MDNSApiVersion { LEA, LEAv2 };
|
||||
|
||||
#include "LEAmDNS.h" // LEA
|
||||
#include "LEAmDNS2Host.h" // LEAv2 - API updated
|
||||
|
||||
// clsLEAMDNSHost replaces MDNSResponder in LEAv2
|
||||
using clsLEAMDNSHost = esp8266::experimental::clsLEAMDNSHost;
|
||||
|
||||
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_MDNS)
|
||||
// Maps the implementation to use to the global namespace type
|
||||
using MDNSResponder = esp8266::MDNSImplementation::MDNSResponder; // LEA
|
||||
//using MDNSResponder = clsLEAMDNSHost; // LEAv2
|
||||
|
||||
extern MDNSResponder MDNS;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user