}
if (tfConfig.eIsSet(tfConfig.eClass().getEStructuralFeature("callbackPeriod"))) {
setCallbackPeriod(tfConfig.getCallbackPeriod());
}
}
tinkerforgeDevice = new BrickletDistanceIR(uid, ipConnection);
tinkerforgeDevice.setResponseExpected(BrickletDistanceIR.FUNCTION_SET_DISTANCE_CALLBACK_PERIOD,
false);
try {
tinkerforgeDevice.setDistanceCallbackPeriod(callbackPeriod);
listener = new DistanceListener();