I need a JS module / library which should include specific functions that I can import and call in a React app.
The module should implement a CRC-16/BUYPASS protocol, and should respect a specific operation flow.
The module / algorithm is used as an interface between a software point of sale application and a hardware point of sale device. The full protocol description document will be provided.
We need the following functions implemented to be able to send and receive information, to and from the hardware device:
- Get information
- Send offline transactions
- Report Initialization
- Report Record
I've included some screenshots from the protocol document (protocol description, message flow and expected output).