mrhornsby / spark-core-mdns Goto Github PK
View Code? Open in Web Editor NEWMulticast DNS and DNS-SD for the Spark Core
License: MIT License
Multicast DNS and DNS-SD for the Spark Core
License: MIT License
Add code to announce the device on a call to begin (optional)
I am trying to put the example app on my Particle Argon. I am getting the following error when trying to compile.
In file included from c:/Users/Trey/Documents/Development/personal/particleprojects/PingBack/lib/MDNS/src/Label.h:7:0, from c:/Users/Trey/Documents/Development/personal/particleprojects/PingBack/lib/MDNS/src/MDNS.h:7, from c:/Users/Trey/Documents/Development/personal/particleprojects/PingBack/src/PingBack.ino:1: c:/Users/Trey/Documents/Development/personal/particleprojects/PingBack/lib/MDNS/src/Record.h:70:24: error: reference to 'Record' is ambiguous class ARecord : public Record { ^ c:/Users/Trey/Documents/Development/personal/particleprojects/PingBack/lib/MDNS/src/Record.h:28:7: note: candidates are: class Record class Record {
The test http example works correctly and shows up in the Bonjour menu in Safari for approximately 3.5 mins. But then it dissappears.
Using the OSX dns-sd tool you can see it being removed.
This may be related to TTL's (I was using a 2 min TTL for non hostname data - this should have been 75 minutes). This is now updated and I'll wait to see the results.
Large bursts of activity crash the core with a hard fault (red flashes = SOS 1 flash SOS).
In my network this is caused by an AppleTV advertising it's services approximately every 10 minutes.
I will use Wireshark to look at the data, but I expect the way to solve this is just to eat data as quickly as possible.
I'm running the example program (mdns.ino) on a particle.io photon. The example works fine for about 3 minutes, but then hangs (no longer responds to requests, and stops all WiFi communications). The LED stops pulsating and must be reset before it works again (you can't even re-flash it, until you power cycle or reset the photon); after which it will hang again after a couple of minutes.
I'm currently using the OS version 2.31.
At the moment I ignore QU questions in the code (i.e. asking for a unicast response to the multicast question). Fixing the code to respond to these as well as subsequent QM questions will speed up name / service resolution as normally the first query is a QU question.
See section 9 of the DNS-SD spec.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.