node-modbus icon indicating copy to clipboard operation
node-modbus copied to clipboard

RTU server unit ID

Open JaagupAverin opened this issue 2 years ago • 1 comments

Hello. I am confused as to how, when constructing the RTU server, one can assign the server's unit ID? Right now the server is reacting to all incoming data.

JaagupAverin avatar Apr 12 '22 12:04 JaagupAverin

Hey @JaagupAverin ,

there isn't any. The serve does not check the unit ID. That is clearly a missing feature but it should not be that hard to implement. Would you care to setup a pull request?

stefanpoeter avatar Apr 20 '22 07:04 stefanpoeter

Hi

I make a simple patch to address this issue. It work for me

jsmodbus-rtu-unit-id.patch

KamaxSuen avatar Jan 12 '23 02:01 KamaxSuen

Hi @KamaxSuen

thanks for your work. Can you put this in a pull request.

stefanpoeter avatar Jan 12 '23 09:01 stefanpoeter

Hi @KamaxSuen

thanks for your work. Can you put this in a pull request.

Hi @stefanpoeter

Thanks for appreciation I'm newcomer in GitHub. I'm not familiar how to create pull request but I will try

KamaxSuen avatar Jan 13 '23 06:01 KamaxSuen