Hello All,
I am implementing a communications routine with an ATM pinpad.
I receive a string of bytes thru the socket newdata event, but I need to convert the first 4 bytes to int + the next 4 bytes to int and the remaining ones to charachters to read the receipt in plain text
The first 4 bytes contain the ResultCode of the transaction
the next 4 bytes contain the lenght of the following data
the remaining bytes are to be converted to text and contain the receipt data
Any Suggestions ?
I am implementing a communications routine with an ATM pinpad.
I receive a string of bytes thru the socket newdata event, but I need to convert the first 4 bytes to int + the next 4 bytes to int and the remaining ones to charachters to read the receipt in plain text
The first 4 bytes contain the ResultCode of the transaction
the next 4 bytes contain the lenght of the following data
the remaining bytes are to be converted to text and contain the receipt data
Any Suggestions ?
Last edited: