Im trying to read comtrade files from IEDs, today i can read the file directory and i know exactly where the files are.
The problem is when i try to get the file, using:
but it just a function, the 3° argument has to be 'IedClientGetFileHandler' type, but i cant do it.
So, how can i get a 'IedClientGetFileHandler' type to the 3 argument?
You can't pass a python function to C code directly.
You'll have to wrap the method in a custom handler, easiest will be to get the whole file and return a bytes object to python.
Hi,
Im trying to read comtrade files from IEDs, today i can read the file directory and i know exactly where the files are. The problem is when i try to get the file, using:
i get the next error _TypeError: in method 'IedConnectiongetFile', argument 4 of type 'IedClientGetFileHandler'
seeing the file-tool.c file, the 3° argument (downloadHandler) is a function like this:
but it just a function, the 3° argument has to be 'IedClientGetFileHandler' type, but i cant do it. So, how can i get a 'IedClientGetFileHandler' type to the 3 argument?