This is a repost since no one every got back to me on why registering an MDNS http service does not work in AP mode.
I'm trying to register an http mdns service so that when I type in a we browser "http://test.local" in goes to the web page on the device. The sl_NetAppMDNSRegisterService function returns 0, but I am unable to get to the webpage using http://test.local". The IP address and mysimplelink.net work just fine. This is my code I've managed to piece together from various documentation sources...
#define SERVICE_NAME "test._http._tcp.local" #define SERVICE_TEXT "p_http" // I'm not sure what this is supposed to be??? retVal = sl_NetAppStart(SL_NETAPP_MDNS_ID); // Unregister first, then register to clean up previous registration // with the same service name. sl_NetAppMDNSUnRegisterService(0, 0, 0); retVal = sl_NetAppMDNSRegisterService((_i8 *)SERVICE_NAME, (unsigned char)strlen(SERVICE_NAME), (_i8 *)SERVICE_TEXT, (unsigned char)strlen(SERVICE_TEXT), 200, 2000, 0x00000001); UART_PRINT("MDNS 1 Registered with NAME: %s & ERROR code: %d\n\r", SERVICE_NAME, retVal);