flserial 0.5.3
flserial: ^0.5.3 copied to clipboard
Flutter Serial Port Plugin FFI based on great C library. Useful to communicate with RS232 devices.
0.5.3 #
Dart layer #
- Fixed critical race condition in
dispose()—close()is nowFuture<void>and properly awaited before freeing native resources - Fixed potential memory leak in
write()— native buffer is now always freed viatry/finally - Fixed
RangeErrorcrash when receiving unknown event type from C++ —fromInt()now returnsnullfor out-of-range values - Removed unnecessary
asyncfromgetModemStatus()— it was synchronous all along - Improved native library load error message with platform context
- Fixed missing braces on single-statement
ifblocks insetDTR()/setRTS()
Native library (C++) #
- Fixed incomplete
termiosconfiguration on POSIX — addedcfmakeraw(),VMIN=0,VTIME=0to prevent inherited terminal settings from corrupting communication - Fixed data race on
last_modem_statusandsend_port_id— both are nowstd::atomic - Fixed partial write on POSIX —
write()now loops until all bytes are sent - Fixed missing guard in
write(),set_dtr(),set_rts()when port is closed - Expanded POSIX baud rate support: added 57600, 230400, 460800, 921600 (platform-conditional)
- Fixed redundant double
close()call inserial_free()— destructor already handles it - Added Windows COM port path fix — ports above COM9 now automatically use
\\.\COMxprefix required byCreateFileA
0.5.2 #
- Add Dart C API
0.5.1 #
- Update readme
0.5.0 #
- Completely rewritten driver
0.3.5 #
- Add support 16KB Page Size
0.3.4 #
- Changelog fix
0.3.3 #
- Replace fifo library
0.3.2 #
- MacOS support
- Memory allocation fix
0.3.1 #
- Update libs
0.3.0 #
- Import project to new plugin ffi template
- Few Api changes
0.2.0 #
- New event model
- Cleaning up unnecessary libs
- Performance improvements
- Api changes, main functions:
Stream based events, before:
serial.onSerialData.subscribe(
to:
serial.onSerialData.stream.listen(
Write serial port, before:
serial.write(data.length, data);
to:
serial.write(data);
0.1.2 #
- Android compilation
0.1.1 #
- Initial beta version