Skip to content

Releases: ssenegas/trafficlight

Traffic Light App v2.0.0

25 Nov 19:36
552c871
Compare
Choose a tag to compare

Refactored the entire application.

Traffic Light App v1.1.1

15 Nov 09:27
Compare
Choose a tag to compare

Configure logging to output to both console and file

  • Added logging.properties to resource to include ConsoleHandler for console output and FileHandler to log messages at INFO level and above to logs/trafficlight.log.
  • Ensured the logs directory is created if it does not exist to prevent NoSuchFileException.
  • This setup provides persistent logging in trafficlight.log alongside console output for better visibility and tracking.
  • Added startup welcome title message in ascii art

Improved serial port handling
By separated the connection management (connecting, reconnecting, and listening for disconnections) from command handling (sending data over the port)

ConnectionManager: Handles connection and reconnection logic. This class listens for disconnection events and tries to reconnect based on exponential backoff. Event Notifications: It notifies listeners of disconnects and reconnects.

Defined a ConnectionListener interface that notify on events such as disconnect and reconnect.

CommandSender: Depends on ConnectionManager for the current connection state. It only sends commands if the port is connected. It listens for onReconnect events to resend the last command automatically after a reconnect.

Traffic Light App v1.0.2

06 Nov 15:19
Compare
Choose a tag to compare

Updated readme.md
Cleanup polling task
Adapted app.properties property keys

Traffic Light App v1.0.1

04 Dec 19:40
Compare
Choose a tag to compare

Traffic Light App v1.0.0

15 Nov 22:28
Compare
Choose a tag to compare
upgraded to JSerialComm 2.10.4.