if (tfConfig.eIsSet(tfConfig.eClass().getEStructuralFeature("callbackPeriod"))) {
setCallbackPeriod(tfConfig.getCallbackPeriod());
}
}
try {
tinkerforgeDevice = new BrickletTemperature(uid, getIpConnection());
tinkerforgeDevice.setResponseExpected(
BrickletTemperature.FUNCTION_SET_TEMPERATURE_CALLBACK_PERIOD, false);
tinkerforgeDevice.setTemperatureCallbackPeriod(callbackPeriod);
listener = new TemperatureListener();
tinkerforgeDevice.addTemperatureListener(listener);