Page 1 of 1

Name Resolution using MDNS

PostPosted: Tue May 20, 2014 12:07 am
by Carl-SolderSplash
With firmware version 1.26 mdns seems to be stable, mdns lets you resolve the IP address of your wifi dipcortex via it's hostname/devicename.

with mbed, once connected if you add this to your code :

if ( wifi.is_dhcp_configured() )
char _deviceName[] = "wifidip";
wifi._socket.mdns_advertiser(1, (uint8_t *)_deviceName, strlen(_deviceName));

it will tell the CC3000 module to enable the mdns server and respond to query's. In windows if you then try to ping wifidip.local it should be able to resolve the hostname to an IP address.

Please note in the past there have been issues with TI's mdns, hopefully with the latest patch there will be less of them.