Skip to content

Commit

Permalink
fix: Made sure the ADS discovery fingerprint token is trimmed to not …
Browse files Browse the repository at this point in the history
…contain non UTF-8 charaters.
  • Loading branch information
chrisdutz committed Aug 18, 2024
1 parent 57c0555 commit 735e779
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public CompletableFuture<PlcDiscoveryResponse> discoverWithHandler(PlcDiscoveryR
attributes.put("twin-cat-version", new PlcSTRING(String.format("%d.%d.%d", (short) versionData[0] & 0xFF, (short) versionData[1] & 0xFF, patchVersion)));
}
if (fingerprintBlock != null) {
attributes.put("fingerprint", new PlcSTRING(new String(fingerprintBlock.getData())));
attributes.put("fingerprint", new PlcSTRING(new String(fingerprintBlock.getData()).trim()));
}
// TODO: Find out how to handle the OS Data

Expand Down

0 comments on commit 735e779

Please sign in to comment.