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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -