Failed to create the MblMwDataLogger. (Linux, Use C++)

Hello.
I want to get acceleration data.
I have read all of your API documents, but I don't understand why there is a problem.

Bluetooth connection was completed, MetawearBoard was initialized, and LED On,Off example was also checked to operate without a problem.
My code is as follows.

auto acc_signal = mbl_mw_acc_get_acceleration_data_signal(board);
mbl_mw_datasignal_log(acc_signal,nullptr,[](void* context, MblMwDataLogger* logger) -> void{
if(logger != nullptr){
cout << "Success." << endl;
}
else{
cout << "Fail!" << endl;
}
});

Every time 'logger' pointer variable returns value = nullptr.
Why does this happen?

Comments

  • Make sure the board does not have any existing loggers before attempting to create new ones.

Sign In or Register to comment.