I have implemented device names that include partial MAC addresses as in the accessory_name example and then tried to mDNS to discover all devices with my model name on the network and noticed that the md=TXT record is set to the Accessory Name characteristic instead of the Model characteristic. After reading section 5.4 of the HAP protocol document, Table 5-7 defines md= to be the model name.
The mDNS facility name is correctly set to the accessory name in the code which matches the protocol document in the first paragraph of section 5.4 so that is awesome.
This change would allow us to discover all devices of a particular model on the network. I'm using this to discover all devices of the correct model to then use rboot-api and ota-tftp to update the firmware on the network only to the correct devices.
I have implemented device names that include partial MAC addresses as in the
accessory_name
example and then tried to mDNS to discover all devices with my model name on the network and noticed that themd=
TXT
record is set to the AccessoryName
characteristic instead of theModel
characteristic. After reading section 5.4 of the HAP protocol document, Table 5-7 definesmd=
to be the model name.The mDNS facility name is correctly set to the accessory name in the code which matches the protocol document in the first paragraph of section 5.4 so that is awesome.
This change would allow us to discover all devices of a particular model on the network. I'm using this to discover all devices of the correct model to then use
rboot-api
andota-tftp
to update the firmware on the network only to the correct devices.