I have Dll function int WriteData (const char* buffer);
and I want to pass HEX file or bin file to this function.
My unsuccessfull attempts was smth like that:
f=open("FENCEE_Monitor.HEX") # open file
array=bytearray(f) # convert it
writeFile=ctypes.c_char_p(array)
dll.WriteData(writeFile)
Thank you for help.