You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 'IedConnection_getFile', 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?
The text was updated successfully, but these errors were encountered: