Skip to content

Commit f6c2595

Browse files
committed
fix: raw write error
1 parent e9605f1 commit f6c2595

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/mqtt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Cayenne.prototype.rawWrite = function(channel, value, type, unit) {
6464
}
6565

6666
if (type === undefined) {
67-
payload = value;
67+
payload = "" + value;
6868
} else {
6969
payload = type + "," + unit + "=" + value;
7070
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cayennejs",
33
"description": "Cayenne API Node.JS Library",
4-
"version": "0.0.2",
4+
"version": "0.0.3",
55
"homepage": "mydevices.com/cayenne",
66
"repository": "https://github.com/myDevicesIoT/cayennejs",
77
"main": "",

0 commit comments

Comments
 (0)