FengChendian / serial_port_win32

A flutter SerialPort library using win32 API.
BSD 3-Clause "New" or "Revised" License
30 stars 8 forks source link

Write in port serial #1

Closed hamidjalili59 closed 3 years ago

hamidjalili59 commented 3 years ago

Greeting What should I do if I want to write something in the serial port? Everything in the library is great ♥ Thanks

FengChendian commented 3 years ago

😨Sorry for that, I forgot add write method to this libaray. I will add this methond now! Please wait a moment

FengChendian commented 3 years ago

I have updated Write API and doc in pub packages. Now you can write something in the serial port. There are two API about writeBytesFromUint8List and writeBytesFromString in version 0.1.0.

This function has been tested in STM32 board.

PS: Maybe you need to use flutter pub upgrade --major-versions to change major version. Because I change 0.0.9 to 0.1.0

hamidjalili59 commented 3 years ago

Thanks for following up