Skip to content

aruneko/WebUSB-RC-S380

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RC-S380 Driver for WebUSB

What is this?

Sony RC-S380 (NFC card reader) Driver for WebUSB written in TypeScript.

How to install

$ npm i rc_s380_driver
# or
$ yarn add rc_s380_driver

How to use

import { RCS380, ReceivedPacket } from 'rc_s380_driver'

class Sample {
    constructor(readonly rcs380: RCS380) {}

    public static async connect(): Promise<TypeFTag> {
        const device = await RCS380.connect()
        return new Sample(device)
    }

    public async sendCommand(): Promise<ReceivedPacket> {
        const command = Uint8Array.of(0x00, 0xff, 0xff, 0x01, 0x00)
        return this.rcs380.inCommRf(command, 0.01)
    }
}

npm package

rc-s380-driver

License

MIT

About

RC-S380 driver for WebUSB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published