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

* Fixed illegal character in consumerName
* Fixed class hashCode

Signed-off-by: Gerhard Riegler <gerhard.riegler@gmail.com>
This commit is contained in:
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

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);