-
-
Notifications
You must be signed in to change notification settings - Fork 342
ANT Neuro SDK functions #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ANT Neuro SDK functions #764
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as an idea looks nice, just need to swap to json on cpp side instead stringstream
@@ -471,8 +474,73 @@ int AntNeuroBoard::config_board (std::string config, std::string &response) | |||
return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR; | |||
} | |||
} | |||
else if (config == get_info) // return stringified JSON with info from ANT board | |||
{ | |||
std::ostringstream oss; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use stringstream, brainflow imports nlohman json already and you can just constract a json object. It will look cleaner
Added ANT SDK info as custom config_board function
"get_info"
:would return (for example):