3-9 DirectIOAsync
This function can send and read user-defined data.
async Task<byte[]> DirectIOAsync (byte[] writeData, UInt32 readLen);
[Parameters]
* byte[] writeData,
[in] This is the data to be sent to the printer.
* UInt32 readLen
[in] The caller receives the size of the data to be read.
[Return Values]
The read data is returned if readLen is 1 or higher, otherwise, it returns null.
* Example
BxlWinPhoneSDK bxlPrinter = new BxlWinPhoneSDK();
……
byte[] bytes = new byte[3] { 0x1d, 0x49, 67};
byte[] readBuf = new byte[20];
readBuf = await bxlPrinter.DirectIOAsync(bytes, 20);
……