Hi All,
I am using grpc C++ API on V4 Chirpstack.
When I query using any list operation, specifically lets say listDeviceRequest. I can see that total_count returns a valid value, but the list in the result is empty and the iterator loop terminates immediately.
Here is the code snippet. total_count is 1 but result() returns an empty list.
std::cout << "Total Devices Count = " << listDeviceResponse->total_count() << std::endl;
for (const auto& device : listDeviceResponse->result())
{
std::cout << "\tDevice " << device.name() << std::endl;
std::cout << "\t\tID: " << device.dev_eui() << std::endl;
}
I tried both mutable result and non mutable result and the behaviour is same. Can anyone please help here?
Regards,
Harsha