Skip to content

Commit b77ff71

Browse files
authored
0.35.0
Check for cloud broker salt so connection init isn't resused.
1 parent 4cabc91 commit b77ff71

File tree

7 files changed

+21
-20
lines changed

7 files changed

+21
-20
lines changed

.gitignore

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,30 @@
11
# Tooling
22
**.classpath
33
**.idea
4+
**.iml
45
**.metadata
56
**.project
67
**.settings
7-
**eclipseBin
8+
**/eclipseBin
89

910
# Build artifacts
11+
.gradle
1012
**.class
11-
**.iml
12-
**build
13-
**classes
14-
**libJar
15-
**out
16-
**target
17-
**/.gradle
18-
**javadoc
19-
**repository
13+
**/build
14+
**/classes
15+
**/libJar
16+
**/out
17+
**/target
2018

2119
# Misc
2220
**.bak
23-
**.old
2421
**.log
22+
**.old
2523
**.DS_Store
2624

2725
# Runtime files
2826
**.jks
2927
**.key
30-
**db
3128
**nodes.json
3229
**nodes*.zip
3330
**test.json

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ subprojects {
44
apply plugin: 'maven'
55

66
group 'org.iot-dsa'
7-
version '0.34.0'
7+
version '0.35.0'
88

99
sourceCompatibility = 1.6
1010
targetCompatibility = 1.6
@@ -25,6 +25,6 @@ subprojects {
2525
}
2626
}
2727

28-
task wrapper(type: Wrapper) {
29-
gradleVersion = '4.9'
28+
wrapper {
29+
gradleVersion = '4.10'
3030
}

dslink-core/.gitignore

-1
This file was deleted.

dslink-v2/src/main/java/com/acuity/iot/dsa/dslink/protocol/v1/DS1LinkConnection.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ public DSIWriter getWriter() {
6868
}
6969

7070
public void updateSalt(String salt) {
71-
connectionInit.updateSalt(salt);
71+
if ((salt == null) || salt.equals("1234")) {
72+
connectionInit = null;
73+
} else {
74+
connectionInit.updateSalt(salt);
75+
}
7276
}
7377

7478
///////////////////////////////////////////////////////////////////////////
@@ -152,6 +156,7 @@ protected void onConnect() {
152156
connOk();
153157
} catch (Exception x) {
154158
connDown(DSException.makeMessage(x));
159+
connectionInit = null;
155160
}
156161
}
157162

dslink-v2/src/main/java/org/iot/dsa/node/DSInfo.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import org.iot.dsa.util.DSUtil;
88

99
/**
10-
* All node children have corresponding DSInfo instances. This type serves two purposes:
10+
* All node children have corresponding DSInfo instances. DSInfo serves two purposes:
1111
* <ul>
12-
* <li>It carries some meta-data about the relationship between the parent node and the
12+
* <li>It carries meta-data about the relationship between the parent node and the
1313
* child.
1414
* <li>It tracks whether or not the child matches a declared default.
1515
* </ul>

gradle/wrapper/gradle-wrapper.jar

-4 Bytes
Binary file not shown.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)