Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix : parameter order in connect method and allow dynamic host connection #68

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

Jbiscode
Copy link
Contributor

@Jbiscode Jbiscode commented Nov 7, 2024

#67
If this behavior was implemented intentionally to enforce a 'localhost' connection, feel free to close this request!

  • Corrected the parameter order in the connect method of both OpcDaClient and OpcCom classes to ensure the correct sequence of opc_server and opc_host.
  • Updated the connect method to allow dynamic host connections instead of defaulting to 'localhost', providing more flexibility in server connections.
  • Improved type annotations for better code clarity and type safety.

Changes:

  • Swapped the order of parameters in the connect method to server, host for consistency and correctness.
  • Removed the hardcoded 'localhost' assignment, allowing the host to be specified dynamically.
  • Enhanced type annotations for opc_server and opc_host parameters.

Impact:

  • These changes ensure that the OPC client can connect to specified servers and hosts correctly, enhancing the flexibility and usability of the library.

…tions

- Corrected the parameter order in the connect method of both OpcDaClient and OpcCom classes to ensure the correct sequence of opc_server and opc_host.
- Updated the connect method to allow dynamic host connections instead of defaulting to 'localhost', providing more flexibility in server connections.
- Improved type annotations for better code clarity and type safety.
Changes:
- Swapped the order of parameters in the connect method to server, host for consistency and correctness.
- Removed the hardcoded 'localhost' assignment, allowing the host to be specified dynamically.
- Enhanced type annotations for opc_server and opc_host parameters.
Impact:
- These changes ensure that the OPC client can connect to specified servers and hosts correctly, enhancing the flexibility and usability of the library.
@renzop renzop merged commit 3539363 into iterativ:develop Nov 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants