OpenZWave / openzwave-dotnet-uwp

An Open-ZWave wrapper for use with .NET or UWP apps
Apache License 2.0
45 stars 27 forks source link

NodeNew Event not raised #21

Closed markolb81 closed 5 years ago

markolb81 commented 6 years ago

Hi, I noticed that the NodeNew Notification does not occur, when adding new nodes via Inclusion Mode to the ZWave Network.

As far as I understood, the event is a virtual event, thrown by OpenZWave as soon as it detects a node which is not in the ozw-config-xml file.

My observation in detail:

Is it possible that the configuration is being updated too early, so that the check if the device already exists will always deliver "already exists"?

Unfortunately, I'm not good at c++ programming, otherwise I'd resolve it myself. I believe the problem is in Driver.cpp in "HandleSerialAPIGetInitDataResponse"

dotMorten commented 5 years ago

Since this library is just wrapping the native OpenZWave library, and you confirmed the event can actually fire (confirming the wrapper works), this is probably better to ask in the OpenZWave repo.