nymea icon indicating copy to clipboard operation
nymea copied to clipboard

NetworkDeviceDiscoveryReply::hostAddressAdded is not always emitted

Open mzanetti opened this issue 2 years ago • 1 comments

It works most of the times, but on some runs this will only be emitted for a few addresses, not all of them.

mzanetti avatar Jul 12 '22 13:07 mzanetti

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).

t-mon avatar Jul 14 '22 06:07 t-mon