[AngularJS] read data from serial port using angular2

2019-08-14 Thread Jitendra Rajauriya
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.

Re: [AngularJS] Re: read data from serial port using angular2

2019-08-14 Thread Jitendra Rajauriya
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

Re: [AngularJS] Re: read data from serial port using angular2

2019-08-16 Thread Jitendra Rajauriya
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

Re: [AngularJS] Hello developers, Really I need a help am stuck on one thing since 10 day's

2020-02-10 Thread Jitendra Rajauriya
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