Ok I replaced the function to get GetServerAddress replaced with GetServerAddressFromSerialNumber and now I have an error:
Error during connection initialization: 'GXDLMSClient' object has no attribute 'ciphering'
Main error: 'GXDLMSClient' object has no attribute 'ciphering'
settings = GXSettings() …
settings = GXSettings()
settings.media = GXNet()
settings.media.hostName = args.hostname
settings.media.port = args.port
settings.trace = TraceLevel.VERBOSE if args.trace.upper() == "VERBOSE" else TraceLevel.OFF
settings.client = GXDLMSClient()
settings.client.interfaceType = InterfaceType.HDLC
settings.client.serverAddress = GXDLMSClient.getServerAddress(args.serial_number)
settings.client.clientAddress = args.client_address
settings.client.authentication = {0: Authentication.NONE, 1: Authentication.LOW, 2: Authentication.HIGH}.get(args.security)
if settings.client.authentication is None:
raise ValueError("Nieprawidłowy poziom bezpieczeństwa.")
settings.client.password = args.password
settings.client.useLogicalNameReferencing = False
settings.client.timeout = 300000
What am I doing wrong?
Ok I replaced the function…
Ok I replaced the function to get GetServerAddress replaced with GetServerAddressFromSerialNumber and now I have an error:
Error during connection initialization: 'GXDLMSClient' object has no attribute 'ciphering'
Main error: 'GXDLMSClient' object has no attribute 'ciphering'
Ok, I'm using GXDLMS Secure…
Ok, I'm using GXDLMS Secure Client, problem solved