From 29e0e09c7ea25c0de069ada9466a9ac74134c631 Mon Sep 17 00:00:00 2001 From: Mao Bing Date: Tue, 28 Aug 2018 20:14:41 -0500 Subject: [PATCH] fix for writeProperty fail --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 89fd40d1..cfdac52d 100644 --- a/lib/client.js +++ b/lib/client.js @@ -620,7 +620,7 @@ class Client extends EventEmitter { maxApdu: options.maxApdu || baEnum.MaxApduLengthAccepted.OCTETS_1476, invokeId: options.invokeId || this._getInvokeId(), arrayIndex: options.arrayIndex || baEnum.ASN1_ARRAY_ALL, - priority: options.priority + priority: options.priority || baEnum.ASN1_NO_PRIORITY }; const buffer = this._getBuffer(); baNpdu.encode(buffer, baEnum.NpduControlPriority.NORMAL_MESSAGE | baEnum.NpduControlBits.EXPECTING_REPLY, address, null, DEFAULT_HOP_COUNT, baEnum.NetworkLayerMessageType.WHO_IS_ROUTER_TO_NETWORK, 0);