I am trying to enhance the Rui Barbosa Martins temperpi project. I am detecting a buffering issue with usb_interrupt_read.
The original project would read from one sensor once in the C code. I am trying to create a sqlite database in the C code andĀ subsequently trying to store multiple readings from multipleĀ sensors. The following is the line that fails: ret = usb_interrupt_read(t->handle, 0x82, (char*)buf, len, t->timeout); I understand that 0x82 is an endpoint, but how does one come up with that number and should it really be hardcoded??? Does libusb-1.0 do internal buffering where the buffers need to be flushed before usb_interrupt_read is called? How might I do that? _______________________________________________ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug