We want to serial port communication using existing angular2 project.
I installed the following.
npm install serialport --save
npm install @types/serialport --save
and
import { SerialPort } from 'serialport' in component.ts
serialPort: typeof SerialPort;
now we got undefined from serialPort.
thanks for reply i want to client side serial communication with existing
angular project.
can you give me better solutions.
Thanks
On Wed, Aug 14, 2019 at 1:53 PM Sander Elias wrote:
> Hi Jitendra,
>
> Is the serialPort module suited for use in a browser? A lot of NPM modules
> only work in a
we are using https://github.com/garrows/browser-serialport for serial
communication in client side.
when we using following after import in angular component
SerialPort.list(function(err, ports) {
console.log(err);
console.log(ports);
});
we got *Error: No access
Hi Sourav,
You have to use nested json array.
Ex.
let json = [
["textbox1", "textbox2" , "textbox3" , "textbox4" ],
["textbox1", "textbox2" , "textbox3" , "textbox4" ],
["textbox1", "textbox2" , "textbox3" , "textbox4" ],
["textbox1", "textbox2" , "textbox3" , "textbox4" ]
]
and you