New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mDNS Support #1376
Comments
At the moment there is this hacked-up implementation gist. |
At this point I would like to get the ESP32 to do this -> respond to hostname.local mDNS queries Any reason this is closed? |
@wilberforce This issue is not closed, only the ESP8266 specific issue is as the intention is to have a .js module for it which is not board specific. The gist was partially used to debug the |
@wilberforce Gist updated with a version that doesn't hold the whole parsed DNS packet in memory and rather issues callback calls for every record. As I mentioned I have been hacking on this recently and I still intend to extend it to provide the features from this issue description. |
Thanks for working on this. I had to hard code the hostname I set the hostname to Have some debug output - looks like apple TV is giving unexpected output:
|
For .js development I mostly run espruino binary on a mac. Once sufficiently tuned I try the boards. And yes, mostly ESP8266. Hm, I guess I will need to print the byte contents before parsing so that we can debug the I have updated the gist a bit more to parse PTR, SRV and TXT records. |
I added the debug on ESP32:
So it looks like the offset is bigger than actual data... { "offset": 814, "len": 516,
Also run on linux. and got this:
|
@wilberforce Thanks for the debug info. I am able to reproduce as well. The Currently the UDP datagrams are simply cut to the max size of the net->chunkSize length. This would require implementing SO_RCVBUF setup so that boards that have enough RAM could receive the whole data. As for the |
I tested the Also I think the @gfwilliams What do you think? |
Can we be brutal here and in the long case just ignore the data?
I can take a look and compile in if necessary |
Yes, that's what I am planning on doing. |
@wilberforce Updated the gist to avoid recursion in So hopefully the errors seen earlier are gone. |
The |
I found the option so can compile into the libs for the ESP-idf in the build tools. I have had some side issues with sockets - the default mtu is something like 1432 - and by default the buffers are 4x this for each connection - so with 10 connections you are looking at a lot of heap use. What seems to occur is that we run out of heap and sockets so op responding. Same code,appears ok on Linux. Should I try a build with Mtu 536 like the chunk size and 2x the buffers? Also the number of connections seems to be 10 but the number of sockets 16 - I would have thought these should be the same? |
This adds the SO_RSVBUF support in the provisioning script for Esp32 |
@wilberforce Actually I am nearing the submission of the gist. I have been testing it for a while here for NTP server discovery (the |
It's been three years. Is there any progress on getting mDNS to work for Espruino esp8266? Only mention in the docs is the use of |
It would be nice to develop at least a minimal mDNS support.
Features:
hostname.local
mDNS queries_services._dns-sd._udp.local
queriesThe text was updated successfully, but these errors were encountered: