|
|
|
|
@ -42,10 +42,17 @@ srv_txt(struct mdns_service *service, void *txt_userdata)
|
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
mdns_example_report(struct netif* netif, u8_t result) |
|
|
|
|
{ |
|
|
|
|
LWIP_PLATFORM_DIAG(("mdns status[netif %d]: %d\n", netif->num, result)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
mdns_example_init(void) |
|
|
|
|
{ |
|
|
|
|
#if LWIP_MDNS_RESPONDER |
|
|
|
|
mdns_resp_register_name_result_cb(mdns_example_report); |
|
|
|
|
mdns_resp_init(); |
|
|
|
|
mdns_resp_add_netif(netif_default, "lwip", 3600); |
|
|
|
|
mdns_resp_add_service(netif_default, "myweb", "_http", DNSSD_PROTO_TCP, 80, 3600, srv_txt, NULL); |
|
|
|
|
|