File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
dslink-v2/src/main/java/com/acuity/iot/dsa/dslink/protocol/v1 Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ subprojects {
5
5
apply plugin : ' maven'
6
6
7
7
group ' org.iot-dsa'
8
- version ' 0.64.0 '
8
+ version ' 0.64.1 '
9
9
10
10
targetCompatibility = JavaVersion . VERSION_1_8
11
11
sourceCompatibility = JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change @@ -62,9 +62,7 @@ protected String getWsUri() {
62
62
63
63
protected void initializeConnection () {
64
64
try {
65
- String uri = makeHandshakeUri ();
66
- setBrokerUri (uri );
67
- debug (debug () ? "Broker URI " + uri : null );
65
+ String uri = getBrokerUri ();
68
66
DSMap response = Json .read (connect (new URL (uri ), 0 ), true ).toMap ();
69
67
String s = response .getString ("dsId" );
70
68
if (s == null ) {
@@ -111,6 +109,13 @@ protected DSTransport makeTransport() {
111
109
return transport ;
112
110
}
113
111
112
+ @ Override
113
+ protected void onStarted () {
114
+ super .onStarted ();
115
+ setBrokerUri (makeHandshakeUri ());
116
+ debug (debug () ? "Broker URI " + getBrokerUri () : null );
117
+ }
118
+
114
119
protected void setWsUri (String arg ) {
115
120
put (wsUri , DSString .valueOf (arg ));
116
121
}
You can’t perform that action at this time.
0 commit comments