I (373) mdns-test: mdns hostname set to: [esp32-mdns]
I (613) example_connect: Connecting to ZTE_5GCPE_F876... I (613) example_connect: Waiting for IP(s) I (3323) wifi:new:<7,1>, old:<1,0>, ap:<255,255>, sta:<7,1>, prof:1 I (3323) wifi:state: init -> auth (b0) I (3333) wifi:state: auth -> assoc (0) I (3363) wifi:state: assoc -> run (10) I (3383) wifi:connected with ZTE_5GCPE_F876, aid = 1, channel 7, 40U, bssid = b0:0a:d5:75:f8:76 I (3393) wifi:security: WPA2-PSK, phy: bgn, rssi: -58 I (3393) wifi:pm start, type: 1
I (3393) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us I (3403) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000 I (3593) wifi:dp: 5, bi: 102400, li: 5, scale listen interval from 307200 us to 512000 us I (3593) wifi:AP's beacon interval = 102400 us, DTIM period = 5 I (5373) example_connect: Got IPv6 event: Interface "example_netif_sta" address: fe80:0000:0000:0000:f29e:9eff:fe99:1260, type: ESP_IP6_ADDR_IS_LINK_LOCAL I (6483) wifi:<ba-add>idx:0 (ifx:0, b0:0a:d5:75:f8:76), tid:0, ssn:0, winSize:64 I (7413) esp_netif_handlers: example_netif_sta ip: 192.168.0.169, mask: 255.255.255.0, gw: 192.168.0.1 I (7413) example_connect: Got IPv4 event: Interface "example_netif_sta" address: 192.168.0.169 I (7423) example_common: Connected to example_netif_sta I (7423) example_common: - IPv4 address: 192.168.0.169, I (7433) example_common: - IPv6 address: fe80:0000:0000:0000:f29e:9eff:fe99:1260, type: ESP_IP6_ADDR_IS_LINK_LOCAL I (7443) gpio: GPIO[9]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 I (7453) main_task: Returned from app_main() I (623103) mdns-test: Query both A and AAA: esp32-mdns.local I (624203) mdns-test: Query A esp32-mdns.local finished I (624203) mdns-test: Query AAAA esp32-mdns.local finished I (624253) mdns-test: Query A: esp32.local W (626273) mdns-test: ESP_ERR_NOT_FOUND: Host was not found! I (626273) mdns-test: Query PTR: _arduino._tcp.local W (629373) mdns-test: No results found! I (629373) mdns-test: Query PTR: _http._tcp.local W (632473) mdns-test: No results found! I (632473) mdns-test: Query PTR: _printer._tcp.local W (635573) mdns-test: No results found! I (635573) mdns-test: Query PTR: _ipp._tcp.local W (638673) mdns-test: No results found! I (638673) mdns-test: Query PTR: _afpovertcp._tcp.local W (641773) mdns-test: No results found! I (641773) mdns-test: Query PTR: _smb._tcp.local 1: Interface: WIFI_STA_DEF, Type: V4, TTL: 120 PTR : raspberrypi._smb._tcp SRV : raspberrypi.local:445 A : 192.168.0.210 AAAA: fe80:0000:0000:0000:0145:95a9:8787:0030 2: Interface: WIFI_STA_DEF, Type: V6, TTL: 120 PTR : raspberrypi._smb._tcp SRV : raspberrypi.local:445 AAAA: fe80:0000:0000:0000:0145:95a9:8787:0030 I (644893) mdns-test: Query PTR: _ftp._tcp.local W (647973) mdns-test: No results found! I (647973) mdns-test: Query PTR: _nfs._tcp.local W (651073) mdns-test: No results found! I (651073) mdns-test: Lookup selfhosted service: _http._tcp.local PTR : ESP32-WebServer._http._tcp SRV : esp32-mdns.local:80 TXT : [3] p=password(8); u=user(4); board=esp32(5); PTR : ESP32-WebServer1._http._tcp SRV : esp32-mdns.local:80 TXT : [2] u=admin(5); path=/foobar(7);
# 通过和开发板在同一局域网的PC利用avahi-browse $ avahi-browse -a -r -l = wlp1s0 IPv4 ESP32-WebServer1-10 Web Site local hostname = [esp32-mdns.local] address = [192.168.0.169] port = [80] txt = ["path=/foobar""u=admin"] = wlp1s0 IPv4 ESP32-WebServer1 Web Site local hostname = [esp32-mdns-2.local] address = [192.168.0.155] port = [80] txt = ["path=/foobar""u=admin"]