/**
* @implNote {@link readDeviceDescription(address)} tries to read device description from the KNX device.
- * According to KNX specification, eihter device descriptor DD0 or DD2 must be implemented.
+ * According to KNX specification, either device descriptor DD0 or DD2 must be implemented.
* Currently only data from DD0 is returned; DD2 is just logged in debug mode.
*
* @param address Individual address of KNX device
/**
* Get the {@link DeviceInfoClient} which allows further device inspection.
*
- * @return the device infor client
+ * @return the device info client
* @throws IllegalStateException in case the client is not connected
*/
DeviceInfoClient getDeviceInfoClient();
}
/**
- * try autodetection of cEMI devices via the PEI identification frame
+ * try automatic detection of cEMI devices via the PEI identification frame
*
* @implNote This is based on an vendor specific extension and may not work for other devices.
*/
// content[1..2] physical address
// content[3..8] serial no
//
- // Weinzierl adds 2 extra bytes, 0x0004 for capablity cEMI,
+ // Weinzierl adds 2 extra bytes, 0x0004 for capability cEMI,
// see "Weinzierl KNX BAOS Starter Kit, User Guide"
if (0 == content[9] && 4 == content[10]) {
logger.debug("Detected device with cEMI support");
}
logger.debug("Establishing connection to KNX bus through FT1.2 on serial port {}{}{}", serialPort,
(useCemiL ? " using cEMI" : ""), ((useCemiL != useCemi) ? " (autodetected)" : ""));
- // CEMI support by Calimero library, userful for newer serial devices like KNX RF sticks, kBerry,
+ // CEMI support by Calimero library, useful for newer serial devices like KNX RF sticks, kBerry,
// etc.; default is still old EMI frame format
if (useCemiL) {
return KNXNetworkLinkFT12.newCemiLink(serialPort, new TPSettings());
@Override
public void initialize() {
- // initialisation would take too long and show a warning during binding startup
+ // initialization would take too long and show a warning during binding startup
// KNX secure is adding serious delay
updateStatus(ThingStatus.UNKNOWN);
initJob = scheduler.submit(this::initializeLater);
*
* @param text text to be translated, may contain placeholders \{n\} for the n-th optional argument of this function
* @param arguments any optional arguments, will be inserted
- * @return translated text with subsitutions if translationprovide is set and provides a translation, otherwise
+ * @return translated text with substitutions if translationProvider is set and provides a translation, otherwise
* returns original text with substitutions
*/
public String get(final String text, @Nullable Object @Nullable... arguments) {
@Test
void testGetBeforeInit() {
- // initial state, should not crash and preferrably return original strings (w. pattern substitution)
+ // initial state, should not crash and preferably return original strings (w. pattern substitution)
assertEquals(UNKNOWN, KNXTranslationProvider.I18N.get(UNKNOWN));
assertEquals(UNKNOWN, KNXTranslationProvider.I18N.get(UNKNOWN, 5));
assertEquals(UNKNOWN_NULL, KNXTranslationProvider.I18N.get(UNKNOWN_PATTERN, null, null));