Name Resolution using MDNS
Posted: Tue May 20, 2014 12:07 am
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.
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.