When I call get_blocks with a single object, I get a large number of blocks returned although other apps (pixymon and hello_pixy) only get a single block. I’m assuming there is something wrong on my side, but was hoping this might sound familiar as to give me a pointer as to where to investigate.
If I start out without an object I will correctly get 0 blocks. Then if I have a single object I will get max_blocks (25 for example) returned. In fact if I remove the object, I will continue to get 25 blocks for about 8-10 calls and then I will get 0 blocks again. It is as if there is a list of stale blocks stored in the firmware, and all of them are continuing to be sent until the buffer is flushed. I’ve looked at the blocks and they seem to be slight variations of the correct block.
The only thing I’m doing differently is that this is my python3 code. I don’t have this problem with your swig example (I get 1 to 8 blocks max), but as I’m not familiar with swig, I’d prefer not to switch over. All of the rest of my code is working.
I have this issue with the 1.02 and the 2.0.2 firmware.
I’ve seen some similar issues posted. I’ll continue debugging, but any suggestions would be appreciated.