diff --git a/lib/proxies/iot.spb.mqtt.js b/lib/proxies/iot.spb.mqtt.js index 8e822a7..db1d017 100644 --- a/lib/proxies/iot.spb.mqtt.js +++ b/lib/proxies/iot.spb.mqtt.js @@ -159,10 +159,7 @@ IoTKitSparkplugBCloud.prototype.data = function (devProf,payloadMetric, callback "metrics" : payloadMetric, "seq" : incSeqNum() }; - var options = { - retain:false, - qos:0 }; - return me.client.publish(topic, payload, options, function(err) { + return me.client.publish(topic, payload, me.pubArgs, function(err) { if (err) { return callback("fail"); } diff --git a/package.json b/package.json index b0b7882..f4a7806 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@open-iot-service-platform/oisp-sdk-js", - "version": "1.4.1", + "version": "1.4.2", "description": "OISP SDK for Node.js", "main": "index.js", "scripts": {