Here is the Spark Core port of Adafruit MDNS library. The library provides the ability to setup a name for the Spark Core and resolve it. We can name the Core anything we want, the library will append ".local" to the name and we can access the Core using the URL "name.local".
The sample application names the Core as "myspark". If the MDNS is setup correctly then it creates a TCPServer on port 80. The Core can be accessed using the URL "http://myspark.local". The server simply prints a test message.
Requirement
- For Mac OSX support is built in through Bonjour already.
- For Linux, install Avahi.
- For Windows, install Bonjour.
Screenhots