I am using the library "rfid-master" by miguelbalboa on github, which contains the file MFRC522.cpp. My sketch calls a function within this file, PICC_DumpToSerial(/arguments/), which calls PICC_DumpMifareClassicToSerial(/arguments/), which finally calls PICC_DumpMifareClassicSectorToSerial(/arguments/) where I have modified the code to copy an existing buffer (byte buffer[18] to a new variable instead of posting it to Serial Monitor. I now need that variable's value to be sent back to my sketch where I will be converting it to an integer value and sending it to a servo.
I've never been exceptionally good at understanding/remembering how to send values between functions, especially across files. Normally I'd just set the function to have a return type and call the function to receive the resulting value, but the functions are already declared as void and I'd rather not change that unless I know what I'm doing. I'm assuming I can just send the value using arguments, but then comes the use of addresses and pointers, which is my main weakness (especially since I'm not used to using the byte variable type).
Any assistance/guidance with this would be greatly appreciated. (I also need to convert the received value to an integer, which I will probably do by copying it over to a String and then typecasting that to an integer...unless someone knows how to do this more efficiently lol)
Thanks!
Image attached to give visual outline of situation.