No problem Erik.
So here's my code:
If I uncomment the check on devs.size()
then it never passes inside so the loop is not executed. Obviously this implies I'm getting an empty vector of dai::DeviceInfo
.
However, if I leave the line commented out and allow the loop to proceed, the first device name I get is the correct IP address for the camera. Furthermore, if I use the dai::DeviceInfo
for this first entry I can connect to the camera successfully using dai::Device device(pipeline, info);
.
As you can see I keep looping until the device name is empty (just to see what I get) as the loop keeps going despite the fact that, from previous tests with the size check uncommented, I would expect the vector returned to have zero size.
The subsequent device names vary but on the last try I got \x1
followed by \x17l@\x1
and then a zero length string. Sometimes I can keep going for longer. This may be because the loop should not be continuing past the first entry of course and it's just reading into other memory space. Hard to say. I just thought I'd mention it in case it gives a clue.
But if the vector is empty then that loop should not execute so something looks to be corrupted somewhere as both the loop and the size check should be in agreement with each other.