We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d2533d commit 61d434eCopy full SHA for 61d434e
ports/tcpport.js
@@ -9,7 +9,7 @@ const crc16 = require("../utils/crc16");
9
/* TODO: const should be set once, maybe */
10
const MODBUS_PORT = 502; // modbus port
11
const MAX_TRANSACTIONS = 256; // maximum transaction to wait for
12
-const MIN_DATA_LENGTH = 6;
+const MIN_DATA_LENGTH = 4; // custom function can have length 4
13
const MIN_MBAP_LENGTH = 6;
14
const CRC_LENGTH = 2;
15
0 commit comments