Skip to content

Commit

Permalink
[tacmi] Additional cleanups & improvements from review
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Niessner <[email protected]>
  • Loading branch information
marvkis committed Sep 9, 2020
1 parent 222858f commit 92eb6cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.tacmi/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ https://github.com/openhab/openhab-addons
attoparser
* License: Apache 2.0
* Project: https://www.attoparser.org
* Source: https://github.com/attoparser/attoparser
* Source: https://github.com/attoparser/attoparser
3 changes: 0 additions & 3 deletions bundles/org.openhab.binding.tacmi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,3 @@ A Popup with an option field will be shown showing all possible options, like in

Please be also aware that there are field having more 'state' values than options, i.E. a manual output override: It has 'Auto/On', 'Auto/Off', 'Manual/On', 'Manual/Off' as state, but only 'Auto', 'Manual/On' and 'Manual/Off' as updateable option.
You only set it to 'Auto' and the extension On/Off is added depending on the system's current state.


Finally - It would be great to hear from your projects and ideas / solutions!
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private void checkForTimeouts() {
@Override
public void initialize() {
try {
final DatagramSocket coeSocket = new DatagramSocket(coePort);
final DatagramSocket coeSocket = new DatagramSocket(COE_PORT);
coeSocket.setBroadcast(true);
coeSocket.setSoTimeout(330000); // 300 sec is default resent-time; so we wait 330 secs
this.coeSocket = coeSocket;
Expand All @@ -181,7 +181,7 @@ public void initialize() {
}

public void sendData(final byte[] pkt, final @Nullable InetAddress cmiAddress) throws IOException {
final DatagramPacket packet = new DatagramPacket(pkt, pkt.length, cmiAddress, coePort);
final DatagramPacket packet = new DatagramPacket(pkt, pkt.length, cmiAddress, COE_PORT);
@Nullable
DatagramSocket sock = this.coeSocket;
if (sock == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void initialize() {
return;
}
this.online = false;
updateStatus(ThingStatus.UNKOWN);
updateStatus(ThingStatus.UNKNOWN);

this.authHeader = "Basic "
+ B64Code.encode(config.username + ":" + config.password, StandardCharsets.ISO_8859_1);
Expand Down

0 comments on commit 92eb6cf

Please sign in to comment.