Cloud-Automation / node-modbus

Modbus TCP Client/Server implementation for Node.JS
471 stars 175 forks source link

Small code formatting and change of the onData function #76

Closed GermanBluefox closed 7 years ago

GermanBluefox commented 7 years ago

The original code was created for the case, that the whole message will come in one event. In real life (especially by serial communication) the bytes come partially. The changed code process the data like stream and not like single frames. TCP has actually the same problem.