From d4eecdc0274b78fe79a6563aaa5d94be7f8452af Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Tue, 3 Jul 2018 20:30:04 +0200 Subject: [PATCH] mdns_example: use new probing callback --- examples/mdns/mdns_example.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/mdns/mdns_example.c b/examples/mdns/mdns_example.c index 5afb00c..ec48f5b 100644 --- a/examples/mdns/mdns_example.c +++ b/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);