use of com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspNeighborCountResponse in project com.zsmartsystems.zigbee by zsmartsystems.
the class EzspNeighborTable method getNeighborCount.
private int getNeighborCount() {
// Check if the network is initialised
EzspNeighborCountRequest neighborCountRequest = new EzspNeighborCountRequest();
EzspTransaction neighborCountTransaction = ashHandler.sendEzspTransaction(new EzspSingleResponseTransaction(neighborCountRequest, EzspNeighborCountResponse.class));
EzspNeighborCountResponse neighborCountResponse = (EzspNeighborCountResponse) neighborCountTransaction.getResponse();
logger.debug(neighborCountResponse.toString());
logger.debug("EZSP neighborCountResponse {}", neighborCountResponse);
return neighborCountResponse.getValue();
}
Aggregations