1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

implement async replies in mDNS library

No need to call mdns.update() from loop() any more.
This commit is contained in:
Ivan Grokhotkov
2015-05-12 17:59:24 +03:00
parent 25d814bdfb
commit 699b06b875
5 changed files with 38 additions and 16 deletions

View File

@ -46,6 +46,9 @@ License (MIT license):
#include "ESP8266WiFi.h"
#include "WiFiUdp.h"
class UdpContext;
class MDNSResponder {
public:
MDNSResponder();
@ -63,7 +66,7 @@ private:
uint8_t* _response;
int _responseLen;
// Socket for MDNS communication
WiFiUDP _mdnsConn;
UdpContext* _conn;
// local IP Address
IPAddress _localAddr;
};