更新 master.js

This commit is contained in:
2019-01-16 04:35:11 +00:00
parent eb5c14d5d4
commit d139465cb5
-35
View File
@@ -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) {