Commit b86aa36
authored
Fix MDNS in IRServer and IRMQTTServer (#1499)
Fix MDNS service in IRServer and IRMQTTServer examples
In the examples IRServer and IRMQTTServer, Chromium and Firefox running on Ubuntu fail to connect to the ESP8266 using the MDNS hostname. For example, esp8266.local and ir_server.local do not resolve.
Based on the MDNS examples included with the ESP8266 board package, adding calls to mdns.addService() and mdns.update() fixes the problems.
Fixes #14981 parent 7e8ea94 commit b86aa36
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2143 | 2143 | | |
2144 | 2144 | | |
2145 | 2145 | | |
| 2146 | + | |
| 2147 | + | |
2146 | 2148 | | |
2147 | 2149 | | |
2148 | 2150 | | |
| |||
2591 | 2593 | | |
2592 | 2594 | | |
2593 | 2595 | | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
2594 | 2599 | | |
2595 | 2600 | | |
2596 | 2601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
151 | 156 | | |
152 | 157 | | |
0 commit comments