Apollon77 / node-mbus

Nodejs mbus module
MIT License
21 stars 15 forks source link

mbus Slave #25

Open ptorrent opened 5 years ago

ptorrent commented 5 years ago

Hello !

THanks for your great work :)

Is there a way to make work this driver as modbus slave ?

Apollon77 commented 5 years ago

What would be the purpose to have it running via Slave? A Slave is requested for data only, correct? What data the module should deliver?

So, no not at tthe moment

ptorrent commented 5 years ago

Yes, the slave should answer the requests of the master.

It should work like a modbus slave I think, something like that:

var slave = new require("mbus-node").Slave();
slave.on("read", function (device, reply) {
    return reply(null, { blablabla });
});
Apollon77 commented 5 years ago

So. no, not included at the moment ... I would be happy to take PRs :-)

ptorrent commented 5 years ago

Sorry, but what does "PRs" mean ? :D

Apollon77 commented 5 years ago

PR=Pull Request ... code it and I will be happy to check and include it :-) Else I leave the request here for later