Skip to content

Commit f645028

Browse files
committed
Keep using CloudProtocol v1 by default
1 parent 1a48772 commit f645028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ const toCloudProtocolV2 = (cborValue) => {
392392
return cloudV2CBORValue;
393393
};
394394

395-
const sendProperty = (thingId, name, value, timestamp, useCloudProtocolV2 = true) => {
395+
const sendProperty = (thingId, name, value, timestamp, useCloudProtocolV2 = false) => {
396396
const propertyInputTopic = `/a/t/${thingId}/e/i`;
397397

398398
if (timestamp && !Number.isInteger(timestamp)) {
@@ -429,7 +429,7 @@ const sendProperty = (thingId, name, value, timestamp, useCloudProtocolV2 = true
429429
return sendMessage(propertyInputTopic, CBOR.encode([cborValue]));
430430
};
431431

432-
const getSenml = (deviceId, name, value, timestamp, useCloudProtocolV2 = true) => {
432+
const getSenml = (deviceId, name, value, timestamp, useCloudProtocolV2 = false) => {
433433
if (timestamp && !Number.isInteger(timestamp)) {
434434
throw new Error('Timestamp must be Integer');
435435
}

0 commit comments

Comments
 (0)