Skip to content

haraldkri/flutter_libserialport_example_mvp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_libserialport_example_mvp

A new Flutter project demonstrating how to use the flutter_libserialport.

MVP includes

  • get list of available devices
  • read data (listen to port reader stream)
  • write data

Getting Started

To get started just pull this project and try it out for yourself. Obviously you might need to update the message send to the device as the expected message format differs from device to device.

libserialport package links

MacOS

Please make sure you give the application permissions to use the serial port on MacOS https://github.com/jpnurmi/flutter_libserialport/issues/30

Output for the main.dart on MacOS

flutter: /dev/cu.usbserial-AE01I87G opened!
flutter: message send [48, 48, 49, 48, 48, 48, 49, 48, 48, 50, 61, 63, 48, 57, 54, 13]
flutter: message received [48, 48, 49, 49, 48, 48, 49, 48, 48, 54, 48, 48, 48, 48, 48, 48, 48, 48, 57, 13]
flutter: 0011001006000000009

Windows

Output for the main.dart on Windows

flutter: COM4 opened!
flutter: message send [48, 48, 49, 48, 48, 48, 49, 48, 48, 50, 61, 63, 48, 57, 54, 13]
flutter: message received [48, 48, 49, 49, 48, 48, 49, 48, 48, 54, 48, 48, 48, 48, 48, 48, 48, 48, 57, 13]
flutter: 0011001006000000009

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published