SUGGESTION: The jsmodbus client reading always has the result output to console. This needs to be suppressed as log() as applications would produce theirs own outputs.
This code should be change to log() instead of console.log().
// SerialClient.js - #255 - replace console.log() with log()
proto.promiseCallback = function (defer) {
var that = this;
return function (resp, err) {
log(JSON.stringify(argument)); // console.log(arguments);
if (err) {
defer.reject(err);
return;
}
defer.resolve(resp);
};
};
SUGGESTION: The jsmodbus client reading always has the result output to console. This needs to be suppressed as log() as applications would produce theirs own outputs.
This code should be change to log() instead of console.log().