How can I unwarp a struct in JS which is returned from C++ API?

Hi,

I want to get the raw stream acceleration data using javascript.

MetaWear.mbl_mw_datasignal_subscribe(acc_signal, function(acc_signal){
console.log(typeof(acc_signal));
console.log(acc_signal);
console.log(acc_signal.length);
});

I have get the acc_signal, but it is a object (C++ struct?). I know how to get XYZ values of accelerations in C++. However, what should I do to get the XYZ values in javascript?

This discussion has been closed.