Skip to content

Releases: GtechGovind/KSerial

KSerial v1.0.8

Choose a tag to compare

@GtechGovind GtechGovind released this 09 Nov 10:16
  1. Fixed port is continuously reconnection if there is nothing to read from serial port!

KSerial v1.0.7

Choose a tag to compare

@GtechGovind GtechGovind released this 09 Nov 10:12
  1. Fixed port is continuously reconnection if there is nothing to read from serial port!

KSerial v1.0.6

Choose a tag to compare

@GtechGovind GtechGovind released this 09 Nov 10:03

Auto-Reconnection:

Added automatic reconnection with a configurable retry delay. This ensures the connection is re-established if lost, enhancing reliability in unstable environments.
Connection Status Flow:

Integrated StateFlow to broadcast real-time connection status, enabling subscribers to react to changes in connection.
Concurrency Safety:

Incorporated a Mutex (named communication) to ensure thread-safe access during read and write operations, protecting against concurrency issues.
Failure Handling & Retry Logic:

Introduced a configurable maxFailureCount to automatically disconnect after a series of consecutive failures, preventing potential deadlocks.
Added a responseFailureCounter to track failures, with an automatic reset upon successful operation.
Improved error handling by disconnecting and resetting the connection if the maximum failure threshold is reached.
Enhanced Logging:

Expanded logging to provide detailed information about connection status, data transmission, and errors, aiding in debugging and traceability.
Builder Pattern:

Implemented a Builder pattern for flexible instance creation, allowing configuration of parameters like baudRate, dataBits, stopBits, parity, retryDelay, readDelay, and maxFailureCount.
Helper Method for Port Discovery:

Added a getPorts() method in a companion object to list all available serial ports, simplifying the process of selecting a port.
Connection Verification:

Added an ensureConnected() method that verifies and re-establishes the connection before every read/write operation to prevent attempts on a disconnected port.
Documentation and Comments:

Added detailed comments and documentation throughout the code, enhancing readability, maintainability, and usability.

KSerial v1.0.5

Choose a tag to compare

@GtechGovind GtechGovind released this 04 Nov 12:47

Full Changelog: v1.0.4...v1.0.5

KSeriak v1.0.4

Choose a tag to compare

@GtechGovind GtechGovind released this 04 Nov 12:01

Full Changelog: v1.0.2...v1.0.4

KSerial v1.0.3

Choose a tag to compare

@GtechGovind GtechGovind released this 04 Nov 11:55
v1.0.2

KSerial v1.0.1

Choose a tag to compare

@GtechGovind GtechGovind released this 04 Nov 11:06

Full Changelog: v0.0.1...v1.0.1

KSerial v1.0.0

Choose a tag to compare

@GtechGovind GtechGovind released this 30 Oct 13:46
389ac90
  1. Refactor KSerial class for improved readability and performance

    • Made structural improvements to the KSerial class for better code organization and clarity.
  2. Add support for string and byte array exchanges

    • Implemented methods for sending and receiving both string and byte array data.
  3. Implement auto-reconnect feature in KSerial

    • Added functionality to automatically attempt reconnections if the connection fails.
  4. Enhance error handling mechanisms in KSerial

    • Improved error handling throughout the library for more robust operation.
  5. Add detailed comments and documentation within the KSerial class

    • Comprehensive comments on each method and parameter were included for better understanding.