I’m trying to understand how the Open Open Access API works with the Arduino ADK, I was able to send and receive information, but I just want to know how everything works. I got a description of this function:
int AndroidAccessory::read(void *buff, int len, unsigned int nakLimit) { return usb.newInTransfer(1, in, len, (char *)buff, nakLimit); }
From some googling, I realized that NAK is a code that is sent if something went wrong during a handshake, so that NAK limits the number of communication errors that can be received?
source share