Skip to content

Commit

Permalink
Query and log manufacturer code
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky committed Apr 18, 2024
1 parent 5844367 commit 09f4311
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/io/calimero/link/KNXNetworkLinkUsb.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ protected KNXNetworkLinkUsb(final UsbConnection c, final KNXMediumSettings setti
logger.log(DEBUG, "KNX device descriptor 0 (Mask Version): {0}", dd0);
}
catch (final KNXTimeoutException expected) {}
try {
// support of device feature service for manufacturer code is optional
final int mfc = conn.manufacturerCode();
logger.log(DEBUG, "KNX manufacturer code: {0}", mfc);
}
catch (final KNXTimeoutException expected) {}

conn.addConnectionListener(notifier);
conn.addConnectionListener(new KNXListener() {
Expand Down

0 comments on commit 09f4311

Please # to comment.