C candide Active Member Licensed User Longtime User May 22, 2020 #1 i would like to use a library Arduino where i have a function: Code: bool compressTimings(unsigned int buckets[8], unsigned int *timings, unsigned int timings_size); at return, data modified are in variables buckets and timings but i cannot do that to send back both data to B4X at return of wrapper, i know to send back only one variable (array or simple variable) => how to send back to B4R 2 variables from wrapper? i didn't find examples of code => can we use an object including multiple variables ? can i have an example ? thanks for your help
i would like to use a library Arduino where i have a function: Code: bool compressTimings(unsigned int buckets[8], unsigned int *timings, unsigned int timings_size); at return, data modified are in variables buckets and timings but i cannot do that to send back both data to B4X at return of wrapper, i know to send back only one variable (array or simple variable) => how to send back to B4R 2 variables from wrapper? i didn't find examples of code => can we use an object including multiple variables ? can i have an example ? thanks for your help
Erel B4X founder Staff member Licensed User Longtime User May 24, 2020 #2 It will be easier to add two public fields that store the results.