Skip to content

Commit 786e8db

Browse files
committed
bug fixes
2 parents 8af4bbd + 074aa2e commit 786e8db

8 files changed

Lines changed: 169 additions & 3447 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This tutorial uses the ClearBlade JavaScript API to communicate with the ClearBl
1010

1111
#### Editing part1.js to add the SystemKey, SystemSecret, PlatformURL and MessagingURL
1212

13-
- Navigate to Tutorial-JavaScript -> js and open part1.js in the text editor of your choice and add your systemkey, systemsecret, platformURL and messagingURL
13+
- Navigate to Tutorial-JavaScript -> js and open part1.js in the text editor of your choice and add your systemkey, systemsecret, platformURL and messagingURL ***(not clear what URLs should be. Non local examples?)***
1414
```javascript
1515
var initOptions = {
1616
URI : "YOUR_PLATFORMURL",
@@ -23,6 +23,8 @@ var initOptions = {
2323
}
2424
```
2525
- Save the file
26+
27+
If your using a local instance try platform_url = "http://localhost:8080"; messaging_url = localhost;
2628

2729

2830

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
Click Next to start Part 3
8787
</div>
8888

89-
<button id="part1bButton" onClick="part1bEvent()">Next</button>
90-
<div class="error" id="part1bError"></div>
89+
<button id="part2bButton" onClick="part2bEvent()">Next</button>
90+
<div class="error" id="part2bError"></div>
9191

9292
</div>
9393
<div id="part3" class="hiddenView">
@@ -228,7 +228,7 @@
228228
</div>
229229
<div id="part7" class="hiddenView">
230230
<div class="label">Part 7 - Messaging</div>
231-
<div>The ClearBlade Platform uses a secure scalable implementation of MQTT for messaging. MQTT - a protocol on top of TCP that is lightweight making it the open standard for IoT communications. It uses a publish subcribe idiom where a user chooses a topic to publish on or subscribe to. A publish can occur on one topic, but a subscriber can be subscribed to many topics. Additionally, there are various quality of service (QoS) states that can be applied to a published message to assure that that the subscribers receive the message.</div>
231+
<div style="max-width:600px;margin-left: auto;margin-right: auto ;">The ClearBlade Platform uses a secure scalable implementation of MQTT for messaging. MQTT - a protocol on top of TCP that is lightweight making it the open standard for IoT communications. It uses a publish subcribe idiom where a user chooses a topic to publish on or subscribe to. A publish can occur on one topic, but a subscriber can be subscribed to many topics. Additionally, there are various quality of service (QoS) states that can be applied to a published message to assure that that the subscribers receive the message.</div>
232232

233233
<div>Lets go!</div>
234234
<ul>

js/app.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,25 @@ var views = {
2828
titleCenterClick = function() {};
2929
}
3030

31+
},part2b: {
32+
setup: function() {
33+
setTitleLeft("Back");
34+
setTitleCenter("<div class='titleLabel'>ClearBlade Tutorial</div>");
35+
setTitleRight("");
36+
titleLeftClick = function() {
37+
showView("part2");
38+
};
39+
titleCenterClick = function() {};
40+
}
41+
3142
},
3243
part3: {
3344
setup: function() {
3445
setTitleLeft("Back");
3546
setTitleCenter("<div class='titleLabel'>ClearBlade Tutorial</div>");
3647
setTitleRight("");
3748
titleLeftClick = function() {
38-
showView("part2");
49+
showView("part2b");
3950
};
4051
titleCenterClick = function() {};
4152
}

0 commit comments

Comments
 (0)