Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update coordinator property when node added #228

Merged
merged 2 commits into from Aug 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -287,7 +287,6 @@ public void thingUpdated(Thing thing) {
logger.debug("Updating coordinator [{}]", thing.getUID());
}


/**
* Common initialisation point for all ZigBee coordinators.
* Called by bridge implementations after they have initialised their interfaces.
Expand Down Expand Up @@ -535,7 +534,7 @@ public void removeNetworkNodeListener(ZigBeeNetworkNodeListener listener) {

@Override
public void nodeAdded(ZigBeeNode node) {
// Nothing to do here...
nodeUpdated(node);
}

@Override
Expand Down Expand Up @@ -643,10 +642,6 @@ public Collection<ZigBeeEndpoint> getNodeEndpoints(IeeeAddress nodeIeeeAddress)
return node.getEndpoints();
}

public Set<ZigBeeNode> getNodes() {
return networkManager.getNodes();
}

@Override
public void networkStateUpdated(final ZigBeeTransportState state) {
switch (state) {
Expand All @@ -672,6 +667,15 @@ public ZigBeeNode getNode(IeeeAddress nodeIeeeAddress) {
return networkManager.getNode(nodeIeeeAddress);
}

/**
* Gets the nodes in this network manager
*
* @return the set of {@link ZigBeeNode}s
*/
public Set<ZigBeeNode> getNodes() {
return networkManager.getNodes();
}

/**
* Permit joining only for the specified node
*
Expand Down