use of com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspGetConfigurationValueRequest in project com.zsmartsystems.zigbee by zsmartsystems.
the class EzspNeighborTable method getConfiguration.
/**
* Get a configuration value
*
* @param configId the {@link EzspConfigId} to set
* @return the configuration value as {@link Integer} or null on error
*/
private Integer getConfiguration(EzspConfigId configId) {
EzspGetConfigurationValueRequest configValue = new EzspGetConfigurationValueRequest();
configValue.setConfigId(configId);
EzspTransaction configTransaction = ashHandler.sendEzspTransaction(new EzspSingleResponseTransaction(configValue, EzspGetConfigurationValueResponse.class));
EzspGetConfigurationValueResponse configResponse = (EzspGetConfigurationValueResponse) configTransaction.getResponse();
logger.debug(configResponse.toString());
if (configResponse.getStatus() != EzspStatus.EZSP_SUCCESS) {
return null;
}
return configResponse.getValue();
}
use of com.zsmartsystems.zigbee.dongle.ember.internal.ezsp.command.EzspGetConfigurationValueRequest in project com.zsmartsystems.zigbee by zsmartsystems.
the class EmberNcp method getConfiguration.
/**
* Get a configuration value
*
* @param configId the {@link EzspConfigId} to set
* @return the configuration value as {@link Integer} or null on error
*/
public Integer getConfiguration(EzspConfigId configId) {
EzspGetConfigurationValueRequest request = new EzspGetConfigurationValueRequest();
request.setConfigId(configId);
EzspTransaction transaction = ashHandler.sendEzspTransaction(new EzspSingleResponseTransaction(request, EzspGetConfigurationValueResponse.class));
EzspGetConfigurationValueResponse response = (EzspGetConfigurationValueResponse) transaction.getResponse();
lastStatus = null;
logger.debug(response.toString());
if (response.getStatus() != EzspStatus.EZSP_SUCCESS) {
return null;
}
return response.getValue();
}
Aggregations