Newer
Older
# ufr-online-javascript-websocket-client-apdu_example
Javascript WebSocket Client example demonstrating usage of APDU commands with COM protocol.
[uFR COM Protocol documentation](https://code.d-logic.com/nfc-rfid-reader-sdk/ufr-doc/-/blob/master/uFR_COM_Protocol.pdf)
Make sure uFR (Zero) Online Reader is in **Websocket mode** and that is in **Websocket Server** mode as well.
Enter uFR (Zero) Online Reader's address and websocket port (eg. ws://xxx.xxx.xxx.xxx:8881)
Proceed with available commands:
- Beep (Basic reader signalization) | USER_INTERFACE_SIGNAL 0x26
- Get UID (Get card UI that is currently on the reader) | GET_CARD_ID_EX 0x2C
- Send APDU - send custom formed APDU command with values you provided (CLA, INS, P0, P1... etc) | APDU_TRANSCEIVE 0x94