Skip to content

Tags: Septrum101/zteOnu

Tags

v0.0.6

Toggle v0.0.6's commit message
Add retry delay and version info enhancements

Added a 500 milliseconds delay before retrying connection attempts in `factory.go` to improve stability. Updated `.goreleaser.yaml` to include version and date information in build flags. Adjusted `version.go` to use lowercase variables and display a more detailed build information format.

v0.0.5

Toggle v0.0.5's commit message
Add --new param to support new ZTE device

When use the new mode, the mac address must set to 00-07-29-55-35-57.

v0.0.4

Toggle v0.0.4's commit message

Unverified

This user has not yet uploaded their public signing key.
Bump version and enhance telnet connection handling

Updated application version and improved upon telnet connection handling for flexibility of telnet port usage.

The application version in version.go has been updated from 0.0.3 to 0.0.4 to reflect new changes added in the current push.

In app/telnet/telnet.go, the telnet connection constructor function was modified to accept an additional argument for the port number. This allows for a port number to be passed as an argument instead of hardcoded, increasing flexibility and allowing for more diverse usage of the function.

In cmd/main.go, the new argument for the telnet port number is also integrated and passed on to the telnet constructor function. This also includes a new flag for providing the telnet port from the command line.

Finally, the version of golang.org/x/net dependency has been upgraded from v0.16.0 to v0.17.0 as per indirect requirement in go.mod and go.sum, to accommodate any new features or bug fixes.

v0.0.3

Toggle v0.0.3's commit message

Unverified

This user has not yet uploaded their public signing key.
Refactor Factory struct and update CLI calls

Moved Factory type declaration from factory.go to model.go for better organization. Also, RESFY.Client field name was altered from 'Cli' to 'cli' for consistency with Go conventions. Consequently, all RESTY.Client calls were updated accordingly. A defer statement was added to the end of Handle() function to secure the closing line printout. The Key slice is now made in advance before using in the loop to prevent repetitive memory reallocations.

This makes the code cleaner and improves efficiency by preventing unnecessary memory usage.

v0.0.2

Toggle v0.0.2's commit message

Unverified

This user has not yet uploaded their public signing key.
Refactor encryption functions and app structure for clarity and robus…

…tness

The commit includes the following changes:
- Several variables in encryption/decryption functions are renamed for better readability and consistency.
- Data padding handling is refined to make the data processing smoother. The encryption function now includes only necessary padding, which simplifies overall data handling and reduces potential for errors.
- Application structure is refactored, moving files from 'app' to a new package 'factory', enhancing modularity and improving maintainability.
- To accomodate the above changes, the 'cmd/main.go' file has been updated, ensuring robust error handling.
- Libraries are added to the go.mod file to prepare for future updates. This is done for proactive dependency management, averting potential discrepancies in future works.

These changes are part of an ongoing effort to streamline the codebase and solidify error handling in the application.