Cloud-Automation / node-modbus

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

ServerSerial usage? #327

Closed MillerRen closed 1 year ago

MillerRen commented 1 year ago

Is this lib can as a serial server? I can see a serial server unit test but can not config it successfully.

stefanpoeter commented 1 year ago

Hey,

this should work with a serial device. The initialization is up to the serialport module. Have a look at their module on how to initialize this.

Am Do., 29. Juni 2023 um 10:22 Uhr schrieb 任羽飞 @.***>:

Is this lib can as a serial server? I can see a serial server unit test but can not config it successfully.

— Reply to this email directly, view it on GitHub https://github.com/Cloud-Automation/node-modbus/issues/327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHK4PDGPXKFP5MSW33ZCVLXNU3NXANCNFSM6AAAAAAZYFL4TI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

MillerRen commented 1 year ago

Thx. I am trying but failed. Will you show me some code example, please?

stefanpoeter commented 1 year ago

I am sorry, I don't use the serialport myself. Post something on github as an issue or look though the closed issues. You may find help there.

Am Do., 29. Juni 2023 um 10:31 Uhr schrieb 任羽飞 @.***>:

Thx. I am trying but failed. Will you show me some code example, please?

— Reply to this email directly, view it on GitHub https://github.com/Cloud-Automation/node-modbus/issues/327#issuecomment-1612629060, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHK4PD7SMKTC5DUWZXUZSLXNU4OLANCNFSM6AAAAAAZYFL4TI . You are receiving this because you commented.Message ID: @.***>