remote_devices.yaml currently represents a dict with device names as keys and the udp address as values:
camera: udp://[IP]:[PORT]
There are a few issues with this approach:
The current layout does not allow adding further properties in the future. It might make sense to nest the dict:
unique identifier:
name: camera
address: udp://[IP]:[PORT]
property1: xyz
property2: xyz
Using the name as an identifiers is prone to collisions (if, say, there are two computers identifying as camera). It might make sense to go with the device's unique MAC address?
58:11:22:b1:62:a5:
name: camera
address: udp://[IP]:[PORT]
remote_devices.yaml
currently represents a dict with device names as keys and the udp address as values:There are a few issues with this approach:
Using the name as an identifiers is prone to collisions (if, say, there are two computers identifying as
camera
). It might make sense to go with the device's unique MAC address?The MAC address can be obtained like so:
This way, machines could update their entries even in the face of dynamic IP addresses.