Search in sources :

Example 1 with EzspLeaveNetworkRequest

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

the class EmberNetworkInitialisation method doLeaveNetwork.

private boolean doLeaveNetwork() {
    EzspLeaveNetworkRequest leaveNetworkRequest = new EzspLeaveNetworkRequest();
    EzspTransaction leaveNetworkTransaction = ashHandler.sendEzspTransaction(new EzspSingleResponseTransaction(leaveNetworkRequest, EzspLeaveNetworkResponse.class));
    EzspLeaveNetworkResponse leaveNetworkResponse = (EzspLeaveNetworkResponse) leaveNetworkTransaction.getResponse();
    logger.debug(leaveNetworkResponse.toString());
    return leaveNetworkResponse.getStatus() == EmberStatus.EMBER_SUCCESS;
}
Also used : EzspLeaveNetworkRequest(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspLeaveNetworkRequest) EzspLeaveNetworkResponse(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspLeaveNetworkResponse) EzspTransaction(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspTransaction) EzspSingleResponseTransaction(com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspSingleResponseTransaction)

Aggregations

EzspLeaveNetworkRequest (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspLeaveNetworkRequest)1 EzspLeaveNetworkResponse (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspLeaveNetworkResponse)1 EzspSingleResponseTransaction (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspSingleResponseTransaction)1 EzspTransaction (com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.transaction.EzspTransaction)1