use of com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspReadCountersResponse in project com.zsmartsystems.zigbee by zsmartsystems.
the class EmberNcp method getCounters.
/**
* Retrieves Ember counters. See the EmberCounterType enumeration for the counter types.
*
* @return the array of counters
*/
public int[] getCounters() {
EzspReadCountersRequest request = new EzspReadCountersRequest();
EzspTransaction transaction = ashHandler.sendEzspTransaction(new EzspSingleResponseTransaction(request, EzspReadCountersResponse.class));
EzspReadCountersResponse response = (EzspReadCountersResponse) transaction.getResponse();
logger.debug(response.toString());
lastStatus = null;
return response.getValues();
}
Aggregations