dart - Using DartLang to comunicate via Serial port -
i want use dartlang communicate arduino serial port, not on tcp/ip. i've found dartlang chrome package , chrome serial reference, solution ? or there other solution use serial port dartlang?
nicolas françois has built native dart vm extension this:
https://github.com/nfrancois/serialport
you'll need compile (requires gcc
, make
, pub
):
there's not huge amount of info on how use it, there some tests , dart class should useful:
looks you'd use this:
var serial = new serialport(dummyserialport.path); serial.onread.listen((s) => print('got: $s')); serial.open() .then((_) => serial.write("hello")) //.then((_) => serial.close());
Comments
Post a Comment