Search in sources :

Example 1 with EzspGetNeighborResponse

use of com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspGetNeighborResponse in project com.zsmartsystems.zigbee by zsmartsystems.

the class EzspNeighborTable method getNeighbor.

private void getNeighbor(int neighbor) {
    EzspGetNeighborRequest neighborRequest = new EzspGetNeighborRequest();
    neighborRequest.setIndex(neighbor);
    EzspTransaction neighborTransaction = ashHandler.sendEzspTransaction(new EzspSingleResponseTransaction(neighborRequest, EzspGetNeighborResponse.class));
    EzspGetNeighborResponse neighborResponse = (EzspGetNeighborResponse) neighborTransaction.getResponse();
    logger.debug(neighborResponse.toString());
    logger.debug("EZSP getNetworkResponse {}", neighborResponse);
}
Also used : EzspGetNeighborResponse(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspGetNeighborResponse) EzspTransaction(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspTransaction) EzspGetNeighborRequest(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspGetNeighborRequest) EzspSingleResponseTransaction(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspSingleResponseTransaction)

Aggregations

EzspGetNeighborRequest (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspGetNeighborRequest)1 EzspGetNeighborResponse (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspGetNeighborResponse)1 EzspSingleResponseTransaction (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspSingleResponseTransaction)1 EzspTransaction (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspTransaction)1