Hi Realtek team and Ameba community,
I’m working on an AmebaPro2 project and want to enable mDNS so that devices on the same network can discover my board via hostname (e.g. my-device.local).
I tried enabling the lwIP mDNS responder by setting:
#define LWIP_MDNS_RESPONDER 1
#define LWIP_IGMP 1
and adding mdns.c from the official lwIP 2.1.2 source into my Arduino sketch. However, the build always fails at the link stage with:undefined reference to `netif_alloc_client_data_id’
It looks like the lwIP core library shipped with AmebaPro2 SDK 4.0.9 may not include this function, or the mDNS module is not fully integrated.
So I’d like to ask:
- Is mDNS officially supported on AmebaPro2 / AMB82-Mini?
- If yes, what is the correct way to enable it? Are there any example sketches or documentation?
- If not, is there a recommended alternative for service discovery on AmebaPro2?
Any help or pointers would be greatly appreciated. Thanks!