更新 master.js
This commit is contained in:
@@ -1,41 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const common = require(__dirname + '/common.js');
|
const common = require(__dirname + '/common.js');
|
||||||
const Modbus = require('./jsmodbus');
|
const Modbus = require('./jsmodbus');
|
||||||
// expected
|
|
||||||
// let options = {
|
|
||||||
// config: {
|
|
||||||
// type: 'tcp',
|
|
||||||
// recon:
|
|
||||||
// timeout:
|
|
||||||
// pulsetime:
|
|
||||||
// poll:
|
|
||||||
// defaultDeviceId: 0,
|
|
||||||
// tcp: { // only if type="tcp" or type="tcprtu"
|
|
||||||
// bind: '0.0.0.0',
|
|
||||||
// port: 502,
|
|
||||||
// },
|
|
||||||
// serial: { // only if type="serial"
|
|
||||||
// comName: 'tty',
|
|
||||||
// parity:
|
|
||||||
// dataBits:
|
|
||||||
// stopBits
|
|
||||||
// baudRate
|
|
||||||
// },
|
|
||||||
// maxBlock
|
|
||||||
// },
|
|
||||||
// objects: {
|
|
||||||
// }
|
|
||||||
// coils: {
|
|
||||||
// addressLow: 0,
|
|
||||||
// length: 1000,
|
|
||||||
// config: []
|
|
||||||
// blocks: {},
|
|
||||||
// cyclicWrite // only holdingRegs
|
|
||||||
// },
|
|
||||||
// inputRegs: ...,
|
|
||||||
// disInputs: ...,
|
|
||||||
// holdingRegs: ...
|
|
||||||
// };
|
|
||||||
|
|
||||||
|
|
||||||
function Master(options, adapter) {
|
function Master(options, adapter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user