Hi,
I would need some help for the folowing problem.
I need to create a function that initialize a device (temperature measure).
It has to return an error code ( OK or the type of error) - (easy stuff here)
But it has also to modify (and thus "return" a short table - the address of the device byte[7]).
I have difficulties in coding how to send the pointer to the table and how to send back the result ;
If coded in the setup it works fine but could not find a way to make it work in an external function.
I have read the reference and also some C++.
I did work (well) with pointers for single variables but not with tables.
The reference did not helped me to solve the problem.
I have at least three versions of code each with different errors (long listings) so the question I am asking is
"How to modify an external table ( wich contains for example a MAC adress) in a function and how to pass the pointer as argument. a practical example would be usefull for me.
It may eventually prove simple but my experience does not allowed me to advance alone.