[gardena] Fixed illegal character in consumerName (#9407)

* Fixed illegal character in consumerName
* Fixed class hashCode

Signed-off-by: Gerhard Riegler <gerhard.riegler@gmail.com>
pull/9417/head
Gerhard Riegler 2020-12-18 02:42:29 +01:00 committed by GitHub
parent 74bdcb6e85
commit 3b9c3cde8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ public class GardenaSmartWebSocket {
this.token = token;
this.socketId = socketId;
webSocketClient = webSocketFactory.createWebSocketClient(socketId);
String webSocketId = String.valueOf(hashCode());
webSocketClient = webSocketFactory.createWebSocketClient(webSocketId);
webSocketClient.setConnectTimeout(config.getConnectionTimeout() * 1000L);
webSocketClient.setStopTimeout(3000);
webSocketClient.setMaxIdleTimeout(150000);