@softwaresamm/react-native-rfid-ble
v0.5.0
Published
Scan and read from RFID devices using BLE
Downloads
5
Readme
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