mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-05 12:42:22 +03:00
LEAmDNS Fixes (#5641)
- Better separation of ESP wifi thread code from user thread code - Added a flag for 'update()'-less use (disabled by default) - The too fast updates for service queries are fixed - Switched fully to PolledTimeout; LEATimeFlag not needed anymore (BTW: a const 'expired()' method would be helpful) - The device should stay visible now even after the first TTL timeout - Improved service querying (queries five times now) - Fixed TTL (bug introduced with Fixes 1.0)
This commit is contained in:
committed by
david gauchard
parent
e9a6fd2f82
commit
a89ab24edc
@ -480,7 +480,6 @@ bool MDNSResponder::_parseQuery(const MDNSResponder::stcMDNS_MsgHeader& p_MsgHea
|
||||
|
||||
sendParameter.m_bResponse = true;
|
||||
sendParameter.m_bAuthorative = true;
|
||||
sendParameter.m_bCacheFlush = false;
|
||||
|
||||
bResult = _sendMDNSMessage(sendParameter);
|
||||
}
|
||||
@ -1214,7 +1213,7 @@ bool MDNSResponder::_sendHostProbe(void) {
|
||||
|
||||
//sendParameter.m_pQuestions->m_bUnicast = true;
|
||||
sendParameter.m_pQuestions->m_Header.m_Attributes.m_u16Type = DNS_RRTYPE_ANY;
|
||||
sendParameter.m_pQuestions->m_Header.m_Attributes.m_u16Class = (/*0x8000 |*/ DNS_RRCLASS_IN); // Unicast & INternet
|
||||
sendParameter.m_pQuestions->m_Header.m_Attributes.m_u16Class = (0x8000 | DNS_RRCLASS_IN); // Unicast & INternet
|
||||
|
||||
// Add known answers
|
||||
#ifdef MDNS_IP4_SUPPORT
|
||||
|
Reference in New Issue
Block a user