STM32H7B3I-DK (Tiny Shark) Wi Fi How To Configure mDNS
Hi,
This question is more a network protocol question than about MCU's however I am writing a driver for the Inventek and wish to use the built in mDNS server so the device may use DHCP and have a local host name.
The Inventek manual doesn't explain what the mDNS parameters do. I was thinking some one with better network knowledge than me might be able to help.
I have gotten the data transport working for UDP with the device configured as a station
I will publish the drivers on this site when I have got them working.
The parameters in question are:
‘D1’ Set mDNS State and Name. I am guessing state is whether the mDNS service is on or off and the name is the name that will be assigned as an alias of the device IP Address.
‘D2’ Set mDNS Services. This is the diffcult one: The usage is -
D2=<Service # 0/1>,<Instance(32chars)>,<Service(32Chars)>,<Port>,<TTL>
There seems to be an error in the manual as this command takes 6 parameters not the five shown in the usage.
The example shows 6 par's:
D2=0,1,web_service,_web_service._tcp.local,80,60
Does anyone know what these should be set to to get the mDNS working. I know that the TTL is "Time to Live" and that it is usually set to around 60 minutes.
As I'm using UDP I guess the 4th par should be:
_myName._udp.local and the port should be 5353
I have tried asking Inventek for help, but they haven't replied to my email.
Best regards
Rob