nymea
nymea copied to clipboard
NetworkDeviceDiscoveryReply::hostAddressAdded is not always emitted
It works most of the times, but on some runs this will only be emitted for a few addresses, not all of them.
FYI: if you need the mac address later for setting up the device, you should not make use of the signal networkDeviceInfoAdded
. The hostAddressDiscovered
signal is meant to be used if you just need an IP, but not the full info. In some cases you might use a different discovery method where you don't need the mac, but checking for services or something.
This is mostly useful if you have virtual networks where no mac address is available, but you can ping network devices (like VPN networks).