3-13 MSRReadFullTrack
This function returns the entire MSR data. It returns error if it is not in the MSR Read Mode
or no data is found. Use MSRReadCancel to deactivate the Read Mode.
Int32 MSRReadFullTrack (ref byte[] msrData, Int32 dataLen);
[Parameters]
* ref byte[] msrData
[in, out] Retrieves MSR Track Data to the buffer defined by the caller.
* Int32 dataLen
[in] Sends the size of the buffer defined by the caller.
[Return Values]
If the function is called successfully, the entire MSR data is returned. If no MSR data is
found, BXL_MSR_DATAEMPTY is returned instead. Each track data is classified as
0x1c.
(Format: [track1 data]0x1c[track2 data]0x1c[track3 data]0x1c)
BxlWinPhoneSDK bxlPrinter = new BxlWinPhoneSDK();
……
Task<Int32> task = bxlPrinter.MSRReadReadyAsync();
await task;
if (BXL_SUCCESS != task.Result)
return;
byte[] track = new byte[600];
Int32 ret = bxlPirnter.MSRReadFullTrack(track, track.length);
if (BXL_MSR_DATAEMPTY == ret)
……
else
……
……