{"version":3,"sources":["jsdelivr-header.js","/npm/icp-modbus@1.0.0/src/modbus.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAqBA,MAAM,gBAAkB,QAAQ,0BAU1B,gBAAkB,QAAQ,0BAG1B,gBAAkB,QAAQ,0BAG1B,gBAAkB,QAAQ,0BAEhC,OAAO,QAAU,CACf,OAAU,CACR,IAAO,gBACP,IAAO,iBAET,OAAQ,CACN,IAAO,gBACP,IAAO","file":"/npm/icp-modbus@1.0.0/src/modbus.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/icp-modbus@1.0.0/src/modbus.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict'\n\n/** jsModbus is a node.js module that enables the developer to interact with modbus/tcp and modbus/rtu server (slaves)\n * or to create a modbus/tcp server (master).\n * @module jsmodbus\n *\n */\n\n/** module:jsmodbus.client.TCP\n * @example <caption>Create new Modbus/TCP Client.</caption>\n * const Modbus = require('jsmodbus')\n * const net = require('net')\n * const socket = new new.Socket()\n * const client = new Modbus.client.TCP(socket, unitId)\n * const options = {\n *   'host' : host\n *   'port' : port\n *   }\n *\n *  socket.connect(options)\n */\nconst ModbusTCPClient = require('./modbus-tcp-client.js')\n\n/** module:jsmodbus.client.RTU\n * @example <caption>Create new Modbus/RTU Client.</caption>\n * const Modbus = require('jsmodbus')\n * const SerialPort = require('serialport')\n * const socket = new SerialPort('/dev/tty/ttyUSB0', { baudRate: 57600 })\n * const client = new Modbus.client.TCP(socket, address)\n */\n\nconst ModbusRTUClient = require('./modbus-rtu-client.js')\n\n/** module:jsmodbus.server.TCP */\nconst ModbusTCPServer = require('./modbus-tcp-server.js')\n\n/** module:jsmodbus.server.RTU */\nconst ModbusRTUServer = require('./modbus-rtu-server.js')\n\nmodule.exports = {\n  'client': {\n    'TCP': ModbusTCPClient,\n    'RTU': ModbusRTUClient\n  },\n  server: {\n    'TCP': ModbusTCPServer,\n    'RTU': ModbusRTUServer\n  }\n}\n"]}