@alexey thanks for setParameterList implementation.
I am trying this code:
void MCX::setParameterList(std::map<std::string, std::vector<double>> paramList){
std::vector<SetParameter> params;
for (auto const &[paramPath, value] : paramList)
{
params.emplace_back(SetParameter(parameter_tree->getInfo(paramPath), value));
}
req->setParameterList(std::move(params)).get();
}
but this doesnt works for some reasons. unsure of the std::move stuff. It does not throw compile time or runtime errors. but for some reason, nothing gets written to the server. On a side note, if I move the last line inside the for loop, it works but now its same as calling setParameter
multiple times.