0.5.0 • Published 3 years ago

@softwaresamm/react-native-rfid-ble v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-native-rfid-ble

Scan and read from RFID devices using BLE

Installation

npm install react-native-rfid-ble

Usage

import RfidBle from '@softwaresamm/react-native-rfid-ble'

RfidBle.on(
  RfidBleEvent.READER_RECEIVED,
  async reader => {
    console.log('Reader scanned:', reader)

    await RfidBle.connectToReader(reader.address)

    RfidBle.on(
      RfidBleEvent.EPC_REPLIES_READ,
      epcReplies => {
        console.log('EPC replies:', epcReplies)
      }
    )
  }
)

// Auto-scan for 10 seconds (10 * 1000ms)
await RfidBle.autoScan(10000)

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.5.0

3 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago