Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix : parameter order in connect method and allow dynamic host connec…
…tions (#68) - 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.
- Loading branch information