Invalid conversion from 'int' to 'uint8_t* {aka unsigned char*}' [-fpermissive]

This function wants address, pointer to array and length of data

You send ???

also what is with casting every function call to void?