mdns-search: add an example using the lwip mDNS service search code.

This commit is contained in:
Our Air Quality 2019-04-06 13:37:33 +11:00
parent 832c1e64a7
commit 289ee8bed4
5 changed files with 180 additions and 0 deletions

View file

@ -0,0 +1,11 @@
# Makefile for mDNS search example
PROGRAM=mdns-search
EXTRA_COMPONENTS=extras/dhcpserver extras/wificfg
# For the mDNS responder included with lwip:
EXTRA_CFLAGS += -DLWIP_MDNS_RESPONDER=1 -DLWIP_NUM_NETIF_CLIENT_DATA=1 -DLWIP_NETIF_EXT_STATUS_CALLBACK=1 -DLWIP_MDNS_SEARCH=1
# Avoid writing the wifi state to flash when using wificfg.
EXTRA_CFLAGS += -DWIFI_PARAM_SAVE=0
include ../../common.mk