C/C++ Question is it possible to make return from wrapper with multiple variables like 2 arraybyte ?

candide

Active Member
Licensed User
i would like to use a library Arduino where i have a function:
B4X:
 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
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…