Browse Source

mdns_example: use new probing callback

master
Simon Goldschmidt 8 years ago
parent
commit
d4eecdc027
  1. 7
      examples/mdns/mdns_example.c

7
examples/mdns/mdns_example.c

@ -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);

Loading…
Cancel
Save