Name Resolution using MDNS

A 40 Pin Dip packaged development board enabling you to create internet connected products

Name Resolution using MDNS

Postby Carl-SolderSplash » 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.
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Return to WiFi DipCortex

Who is online

Users browsing this forum: No registered users and 5 guests

cron