[C++] Handler parameterRequestHandler() never called
bertaveira opened this issue · comments
Description
I am not totally sure this is a bug but as far as I can test i cannot make the handler parameterRequestHandler() be called. I modified the example code to add this handler. The only thing I added was a log message so i can confirm it was being called. For some reason it is never called.
Am I missing something? Was this ever tested since there is no example or tests for it?
- Version: releases/cpp/v1.2.0
Steps To Reproduce
Modify the protobuf test example_server_protobuf.cpp
with this handler:
hdlrs.parameterRequestHandler = [&](const std::vector<std::string> ¶mNames, const std::optional<std::string> &reqID, foxglove::ConnHandle hndl) {
std::cout << "parameterRequestHandler() called!" << std::endl;
};
Then connect via Foxglove studio and open the parameter panel. In the param server python example this would trigger the handler function but for some reason can't get the same behaviour on the c++ version
Solved by this: https://github.com/orgs/foxglove/discussions/700