Search in sources :

Example 1 with EzspNeighborCountRequest

use of com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspNeighborCountRequest 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();
}
Also used : EzspNeighborCountRequest(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspNeighborCountRequest) EzspNeighborCountResponse(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspNeighborCountResponse) EzspTransaction(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspTransaction) EzspSingleResponseTransaction(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspSingleResponseTransaction)

Aggregations

EzspNeighborCountRequest (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspNeighborCountRequest)1 EzspNeighborCountResponse (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspNeighborCountResponse)1 EzspSingleResponseTransaction (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspSingleResponseTransaction)1 EzspTransaction (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspTransaction)1