I am porting some Arduino code of mine where I had used the readBytes function, so I wanted to use the readblob function but cannot understand how the readblob works in relation to the uart configured callback function.
uart.configure(baudRate, wordSize, parity, stopBits, flags, myCallbackFunction)
When exactly does the callback function fire. If it fires as soon as the first byte arrives then how does readblob/readstring work if it is not a blocking function. I was planning to set the numberOfBytes in the readblob function, but it's not clear if I need to also set the setrxfifosize() if this somehow linked to the timing of the uart callback function.