Skip to content

Commit a36a6c8

Browse files
author
Viktr
authored
Add isRunning getter to check is ::begin already called (#7219)
1 parent 5039881 commit a36a6c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/ESP8266mDNS/src/LEAmDNS.h

+5
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ class MDNSResponder
194194
// for compatibility...
195195
bool setHostname(const String& p_strHostname);
196196

197+
bool isRunning(void)
198+
{
199+
return (m_pUDPContext != 0);
200+
}
201+
197202
/**
198203
hMDNSService (opaque handle to access the service)
199204
*/

0 commit comments

Comments
 (0)