Cloud-Automation / node-modbus

Modbus TCP Client/Server implementation for Node.JS
467 stars 174 forks source link

Programmatic exception code response #257

Closed kdrews34 closed 4 years ago

kdrews34 commented 4 years ago

I currently do not see a way to programmatically send an exception code from modbus server on certain requests. For example, Let's say I don't want to support 'read coils' requests, so I want to respond with an 'illegal function' code any time this type of request comes in. If there is a way to do this currently, I would appreciate a simple example use of the functionality.

stefanpoeter commented 4 years ago

Hi @kdrews34 what version are you using?

flottokarotto commented 3 years ago

I am also looking for that feature, using v3.1.3