I have a function below "readIn" that reads the data it recieves from an external source and puts the data in the given bytes of array. I need to send some of this data back
(slave, code, start and values) as well as the contents of pInfo->values. In the second function below "createResponse" I have implicitly defined the values to send back and it seems to work.Obviously this isn't useful as I will not always know what these values are. How can I read from one function and send it back with the extra info? Any help would be much appreciated.