Closed spudwebb closed 4 years ago
I think we need to port: https://github.com/zsmartsystems/com.zsmartsystems.zigbee/pull/671 and probably also: https://github.com/zsmartsystems/com.zsmartsystems.zigbee/pull/685
I understand what you mean. Maybe that is the reason why sometimes new devices are not added correctly to the network after restarting the dongle. But I am not sure at the moment and will take a loot at this point of code.
Also the two linked issues will make sense to implement them. I will also read about them and will open new issues if they need to be implemented
Do you want me to port this 2 PR to ZigbeeNet?
This would be very helpful for everyone.
I would be very happy about your PR :-)
done in PR #71
Thanks!
When a node is first added NodeAdded is called, but the node passed as parameter has an empty Endpoints dictionary, which I guess is expected?
Then ZigBeeDiscoveryExtension does its job and queries the node for its capabilities. The Endpoints dictionary is populated, but NodeUpdated is never called.
I think ZigBeeNetworkManager.RefreshNode() is supposed to trigger the NodeUpdated callback for all the listeners but it never does because it always returns here:
I don't understand how it is supposed to work: currentNode.UpdateNode(node) always returns false because here currentNode and node are the same reference so UpdateNode correctly says they are equal.
I'm testing with the PlayGround sample