Resolving Host on mDNS

photon
Tags: #<Tag:0x00007fe21e897170>

#41

Ok. That does answer that.
Another query I had is, Is it possible to copy a UDP library of another board, say EP8266, and use it as an include in my application. As I am using one of their libraries that depend heavily on lwIP which is not accessible in particle. If I make an include which will have all the necessary lwIP and the ESPUDP files, will it work or it will have massive issues due to change in platform?


#42

Most likely not since the network stacks between the two platforms are entirely different and I doubt any ESP UDP library would be that hardware agnostic that it could be transferred over without a good amount of rework.


#43

Any other possible way to resolve a hostname on mDNS on particle photon apart from porting an ESP library and spending hours clearing all the dependencies without any guarantee it will work?
I also thought about using the current mDNS library present in the particle and include the feature of sending and resolving QTYPE A queries but even that will require a lot of effort to understand the library and add those features at the right place. However, this seems to be the only path left for now.


#44

Hey is it possible to modily your serverLocater code on github and use it to send QTYPE A and resolve the host IP? Maybe we can work together and convert it into a library used just for host IP resolving?


#45

Where did you find this information? I am hoping to find the response part of it too so that I can make it work somehow.


#46



#47

Hey, is it possible to start a service on the host on which it sends it’s current dhcp IP address so that the photon can subscribe to it and get the IP Address?


#48

Hey. Some new developments. While testing with the MDNS library for photon, I found that the particle is unable to join the multicast group after some time. It is working fine in the beginning but after some time it is dropping off of the group and unable to join again. Any views on why this must be happening? I have tried leaving the multicast group and joining again but to no vain.


#49

Hey. So I forgot to update here. I was able to modify an ESP8266 library for particle photon to resolve the mDNS host IPs. It takes in the host name “host1.local” and returns it’s IP on the subnet. I will post it on my github. Ping me if anyone needs it. Thank you everyone for your help.