You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are you trying to do?
*receive data from SerialPort and print them on Console
*receive data from http request (port 8019) and send them to SerialPort
What happens?
SerialPort is not opened
What should have happened?
*SerialPort should open & data should be received from SerailPort
the following code is working with @serialport/bindings:2.0.3 but not anymore with @serialport/bindings:2.0.4
Summary of Problem
(Please answer all 3)
What are you trying to do?
*receive data from SerialPort and print them on Console
*receive data from http request (port 8019) and send them to SerialPort
What happens?
SerialPort is not opened
What should have happened?
*SerialPort should open & data should be received from SerailPort
the following code is working with @serialport/bindings:2.0.3 but not anymore with @serialport/bindings:2.0.4
Code to Reproduce the Issue
var server = net.createServer(function(c) {
console.log((new Date()) + " - Server connected");
c.on('error', function(e) {
console.log((new Date()) + " - Error server disconnected");
});
c.on('close', function() {
console.log((new Date()) + " - Connexion closed");
});
c.on('data', function(data) {
console.log((new Date()) + " - Response: " + data);
gw.write(data.toString() + '\n');
});
});
server.listen(8019, function(e) {
console.log((new Date()) + " - server bound on 8019");
});
});
Versions, Operating System and Hardware
@serialport/bindings:2.0.4 (works well with @serialport/bindings:2.0.3)
The text was updated successfully, but these errors were encountered: