Skip to content

Commit 7f914e2

Browse files
committed
Bumped version: 0.4.23
1 parent b3e3d18 commit 7f914e2

File tree

10 files changed

+69
-40
lines changed

10 files changed

+69
-40
lines changed

dist/webduino-all.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,7 +2496,7 @@ Paho.MQTT = (function (global) {
24962496
})(window);
24972497

24982498
var webduino = webduino || {
2499-
version: '0.4.22'
2499+
version: '0.4.23'
25002500
};
25012501

25022502
if (typeof exports !== 'undefined') {
@@ -3948,7 +3948,10 @@ if (typeof exports !== 'undefined') {
39483948
DISCONNECT: 'disconnect'
39493949
};
39503950

3951-
// Message command bytes (128-255/0x80-0xFF)
3951+
/**
3952+
* Message command bytes (128-255/0x80-0xFF)
3953+
* https://github.com/firmata/protocol/blob/master/protocol.md
3954+
*/
39523955
var DIGITAL_MESSAGE = 0x90,
39533956
ANALOG_MESSAGE = 0xE0,
39543957
REPORT_ANALOG = 0xC0,
@@ -4040,14 +4043,19 @@ if (typeof exports !== 'undefined') {
40404043
}
40414044

40424045
function onMessage(data) {
4043-
var len = data.length;
4046+
try {
4047+
var len = data.length;
40444048

4045-
if (len) {
4046-
for (var i = 0; i < len; i++) {
4047-
this.processInput(data[i]);
4049+
if (len) {
4050+
for (var i = 0; i < len; i++) {
4051+
this.processInput(data[i]);
4052+
}
4053+
} else {
4054+
this.processInput(data);
40484055
}
4049-
} else {
4050-
this.processInput(data);
4056+
} catch (err) {
4057+
console.error(err);
4058+
throw err;
40514059
}
40524060
}
40534061

@@ -5550,12 +5558,6 @@ chrome.bluetoothSocket = chrome.bluetoothSocket || (function (_api) {
55505558
}
55515559
});
55525560

5553-
proto.startup = function() {
5554-
this._isReady = true;
5555-
this.getPin(34).setMode(2); //set analogNum 6 = pin34
5556-
this.emit(webduino.BoardEvent.READY, this);
5557-
};
5558-
55595561
Bit.DEFAULT_SERVER = 'wss://ws.webduino.io:443';
55605562

55615563

dist/webduino-all.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/webduino-base.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,7 +2496,7 @@ Paho.MQTT = (function (global) {
24962496
})(window);
24972497

24982498
var webduino = webduino || {
2499-
version: '0.4.22'
2499+
version: '0.4.23'
25002500
};
25012501

25022502
if (typeof exports !== 'undefined') {
@@ -3948,7 +3948,10 @@ if (typeof exports !== 'undefined') {
39483948
DISCONNECT: 'disconnect'
39493949
};
39503950

3951-
// Message command bytes (128-255/0x80-0xFF)
3951+
/**
3952+
* Message command bytes (128-255/0x80-0xFF)
3953+
* https://github.com/firmata/protocol/blob/master/protocol.md
3954+
*/
39523955
var DIGITAL_MESSAGE = 0x90,
39533956
ANALOG_MESSAGE = 0xE0,
39543957
REPORT_ANALOG = 0xC0,
@@ -4040,14 +4043,19 @@ if (typeof exports !== 'undefined') {
40404043
}
40414044

40424045
function onMessage(data) {
4043-
var len = data.length;
4046+
try {
4047+
var len = data.length;
40444048

4045-
if (len) {
4046-
for (var i = 0; i < len; i++) {
4047-
this.processInput(data[i]);
4049+
if (len) {
4050+
for (var i = 0; i < len; i++) {
4051+
this.processInput(data[i]);
4052+
}
4053+
} else {
4054+
this.processInput(data);
40484055
}
4049-
} else {
4050-
this.processInput(data);
4056+
} catch (err) {
4057+
console.error(err);
4058+
throw err;
40514059
}
40524060
}
40534061

dist/webduino-base.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/classes/webduino.Board.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ <h2>Constructor</h2>
159159
<div class="meta">
160160
<p>
161161
Defined in
162-
<a href="../files/src_core_Board.js.html#l63"><code>src&#x2F;core&#x2F;Board.js:63</code></a>
162+
<a href="../files/src_core_Board.js.html#l66"><code>src&#x2F;core&#x2F;Board.js:66</code></a>
163163
</p>
164164

165165

docs/data.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
"extension_for": [],
251251
"namespace": "webduino",
252252
"file": "src/core/Board.js",
253-
"line": 63,
253+
"line": 66,
254254
"description": "An abstract development board.",
255255
"is_constructor": 1,
256256
"params": [
@@ -814,6 +814,12 @@
814814
},
815815
"elements": {},
816816
"classitems": [
817+
{
818+
"file": "src/core/Board.js",
819+
"line": 33,
820+
"description": "Message command bytes (128-255/0x80-0xFF)\nhttps://github.com/firmata/protocol/blob/master/protocol.md",
821+
"class": "webduino.Board"
822+
},
817823
{
818824
"file": "src/core/EventEmitter.js",
819825
"line": 33,
@@ -2336,5 +2342,10 @@
23362342
"namespace": "webduino.transport"
23372343
}
23382344
],
2339-
"warnings": []
2345+
"warnings": [
2346+
{
2347+
"message": "Missing item type\nMessage command bytes (128-255/0x80-0xFF)\nhttps://github.com/firmata/protocol/blob/master/protocol.md",
2348+
"line": " src/core/Board.js:33"
2349+
}
2350+
]
23402351
}

docs/files/src_core_Board.js.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ <h1>src/core/Board.js <small>File</small></h1>
128128
DISCONNECT: &#x27;disconnect&#x27;
129129
};
130130

131-
// Message command bytes (128-255/0x80-0xFF)
131+
/**
132+
* Message command bytes (128-255/0x80-0xFF)
133+
* https://github.com/firmata/protocol/blob/master/protocol.md
134+
*/
132135
var DIGITAL_MESSAGE = 0x90,
133136
ANALOG_MESSAGE = 0xE0,
134137
REPORT_ANALOG = 0xC0,
@@ -220,14 +223,19 @@ <h1>src/core/Board.js <small>File</small></h1>
220223
}
221224

222225
function onMessage(data) {
223-
var len = data.length;
226+
try {
227+
var len = data.length;
224228

225-
if (len) {
226-
for (var i = 0; i &lt; len; i++) {
227-
this.processInput(data[i]);
229+
if (len) {
230+
for (var i = 0; i &lt; len; i++) {
231+
this.processInput(data[i]);
232+
}
233+
} else {
234+
this.processInput(data);
228235
}
229-
} else {
230-
this.processInput(data);
236+
} catch (err) {
237+
console.error(err);
238+
throw err;
231239
}
232240
}
233241

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webduino-js",
3-
"version": "0.4.22",
3+
"version": "0.4.23",
44
"main": "index.js",
55
"description": "The Webduino Javascript Core, for Browser and Node.js",
66
"repository": "https://github.com/webduinoio/webduino-js.git",

src/webduino.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var webduino = webduino || {
2-
version: '0.4.22'
2+
version: '0.4.23'
33
};
44

55
if (typeof exports !== 'undefined') {

0 commit comments

Comments
 (0)