Skip to content

Commit 5da220b

Browse files
author
Stefania
committed
keep numeric type for cbor keys
1 parent 3b7282e commit 5da220b

File tree

3 files changed

+218
-67
lines changed

3 files changed

+218
-67
lines changed

package-lock.json

+216-65
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"devDependencies": {
2323
"babel-cli": "^6.26.0",
2424
"babel-core": "^6.26.3",
25-
"babel-eslint": "^8.2.3",
25+
"babel-eslint": "^10.0.1",
2626
"babel-loader": "^7.1.4",
2727
"babel-preset-env": "^1.7.0",
2828
"babel-preset-es2015": "^6.24.1",

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ const sendProperty = (thingId, name, value, timestamp) => {
427427
cborValue = toCloudProtocolV2(cborValue);
428428
}
429429

430-
return sendMessage(propertyInputTopic, CBOR.encode([cborValue]));
430+
return sendMessage(propertyInputTopic, CBOR.encode([cborValue], true));
431431
};
432432

433433
const getSenml = (deviceId, name, value, timestamp) => {

0 commit comments

Comments
 (0)