-
Notifications
You must be signed in to change notification settings - Fork 5
Class Not Registered #4
Description
I have the following error :
includes.OpenOPC.OPCError: Dispatch: Class not registered
I only tried the following :
[opc]
classname=
host=127.0.0.1
servers=Elipse.OPCSvr.1
here is the output terminal :
2023-06-08 14:22:32 - ## ---------------------------------- ##
2023-06-08 14:22:32 - ## STARTING http2opc daemon -------- ##
2023-06-08 14:22:32 - ## ---------------------------------- ##
2023-06-08 14:22:32 - Config file: main.conf
2023-06-08 14:22:32 - RestApi Server IP: 127.0.0.1
2023-06-08 14:22:32 - RestApi Server Port: 8003
2023-06-08 14:22:32 - Started REST API Server on port 8003
2023-06-08 14:22:32 - Opc Class: "Elipse Software Ltda"
2023-06-08 14:22:32 - Opc Servers: Elipse.OPCSvr.1
2023-06-08 14:22:32 - Opc Host: 127.0.0.1
Traceback (most recent call last):
File "d:/Python/opc-rest-api/http2opc/main.py", line 41, in
rest = ApiServers.RestApiServer(logger,server_ip, server_port)
File "d:\Python\opc-rest-api\http2opc\includes\ApiServers.py", line 31, in init
result = funcs.init()
File "d:\Python\opc-rest-api\http2opc\includes\ApiFunctions.py", line 41, in init
self.opc = OpenOPC.client()
File "d:\Python\opc-rest-api\http2opc\includes\OpenOPC.py", line 177, in init
raise OPCError, error_msg
includes.OpenOPC.OPCError: Dispatch: Class not registered
PS D:\Python\opc-rest-api\http2opc>
I only have the host ip (127.0.0.1) and opc name Elipse.OPCSvr.1
How to get the opc classname ?