- changes serial driver to only load serialport when invoked
- changes serialport dependency to be an optional one
- deps:
- deps:
- changes example to show how to define
unitId
- corrects contradiction in README example
- disables debug
- deps:
- dtslint@^0.4.2
- adds TypeScript definitions
- deps:
- transport:
- serial:
- fixes not being able to define slaveId (#20)
- serial:
- deps:
- deps:
- transport:
- serial:
- adds 'mode' option to be able to select 'ascii' instead of the common serial (RTU)
- serial:
- transport:
- expose
stream
in events
- expose
- tcp:
- add a connection timeout option,
connectTimeout
(default=10s) (@jhillacre)
- add a connection timeout option,
- ci:
- drop node 0.x, adds v8 (I still make efforts to it works on 0.x)
- transport:
- serial:
- allow default slaveId to be passed in constructor
- tcp:
- allow default unitId to be passed in constructor (fixes #8)
- serial:
- deps:
- tcp: fixes #7
- transport:
- allow multiple retry timers, allowing tcp to requests to go simultaneously (#6)
- test:
- change quirks to split each transport and avoid confusion
- avoids using reserved word
package
(fixes #5)
- serial:
- allow to pass any option that you can use in serialport
- avoid clearing buffer if it's already cleared
- transport:
- pass options also to transport to be able to set options there
- serial:
- adds maxDataInterval (in ms) between received data blocks
- serial:
- allow option crc=false to be able to send raw data
- fixes dropping data with less than 4 bytes
- serial:
- allow to pass lock option
- tcp:
- handle packages concatenated in one data event
- tcp:
- fixes previous commit not properly handling exceptions as it should
- tcp:
- fixes callbacks not working for exception responses
- transport:
- adds support for a mutex
- transport:
- exposes
close
event
- exposes
- readme:
- adds events section
- transport:
- propagate error event from stream (#4)
- store closed state and avoid send data to a closed stream (#4)
- tcp:
- ensure tcp properly splits packages that come together
- test:
- adds quirk tests, fixes double callback invocation
- deps:
- transport:
- fixes tcp not clearing before new retries
- deps:
- transport:
- tcp callback now matches transaction+unit+fcode
- fixes utf8 non visible whitespace
- deps:
- stream:
- adds option debuginvert to invert the arrows in incoming/outgoing debug lines
- adds option debugdate that when passed false will not print date in debug lines
- transport:
- fixes replies with unknown function codes
- deps:
- udp:
- initial support
- test:
- adds node v5, disable node v8 for now, adds node_modules to cache
- transport:
- tcp:
- fixes calling socket.close() instead of socket.end()
- tcp:
- modbus:
- pass all options to tcp transport (fixes #3)
- transport:
- serial:
- adds support for data coming in parts (checking CRC match)
- serial:
- transport:
- fixes timeout error returned not having a proper code
- tcp:
- return a proper code when not being able to connect to remote host/port
- serial:
- return a proper code when not being able to open port
- stream:
- add iso date to debug lines
- test:
- adds node v8
- deps:
- deps:
- [email protected] (previous update was erroneous)
- stream:
- fixes typo in addres
- deps:
- deps:
- deps:
- transport:
- ascii:
- check slave id response match
- serial:
- check slave id response match
- ascii:
- transport:
- changes beforewrite/afterwrite to beforerequest/afterrequest
- stream:
- adds close(next)
- deps:
- serial:
- adds support for serialport from 1.7.1 and above
- transport:
- only stop retry timer if transport unwrap returns ok
- serial:
- avoid errors when receiving data with less than 3 bytes
- transport:
- fixes static method prepare()
- fixes transport send using prototype.apply instead of prototype.call
- stream:
- fixes typo of addres
- node:
- updates code to work properly on 0.10
- readme:
- removes v6 reference since now it should work from 0.10 onwards
- node:
- adds support for at least v0.10
- transports:
- return an error (GatewayTargetDeviceFailedToRespond) after retries run out
- adds support for beforewrite and afterwrite
- tcp:
- adds default retry timeout to 30 seconds
- deps:
- modbus:
- adds serial options for retrying
- expose stream and pdu (modbus-pdu module)
- stream:
- wrap data when using write() directly
- transport:
- support request codes that pdu does not know
- deps:
- initial stable version
- transports:
- ascii
- serial
- tcp
- drivers:
- rtu
- tcp