I am trying to use mDNS with CC3000 on a WiFi network. I am using mbed devlopment environment. After CC3000 has connected to the WiFi and then used DHCP to get basic LAN set-up, I use mdns_advertiser to start mDNS advertising. However, this fails and returns a code which depends upon the device name that I am trying to set. If I use CC3000, the return code is 189. If I use A_CC3000, the return code is 191. I am using CC3000 firmware version 1.24
My code is:
int32_t startmDNSRetCode = 0;
char _deviceName[] = "A_CC3000";
// Start the mdns service
startmDNSRetCode = wifi._socket.mdns_advertiser(1, (uint8_t *)_deviceName, strlen(_deviceName));
I have two questions:
- What does this return code mean ie what is the error?
- Is there a list of possible return codes and their meaning anywhere?
Thanks
John