I need the following C function in Python:
int func(Uint8 *bytRecvBuffer, int *iRecvLen);
I tried in Python:
mydll = cdll.LoadLibrary("my.dll")
recvBuffer = None
recvLength = None
funcFunction = getattr(mydll, "func")
funcFunction(POINTER(c_ubyte(recvBuffer)), POINTER(c_int(recvLength)))
Error message:
TypeError: an integer is required
What is wrong here with the parameters?