handle rfid for module chainway r6
npm install react-native-rfid-chainway-r6handle rfid for module chainway r6
``sh`
npm install react-native-rfid-chainway-r6
`js`
import RfidChainwayR6 from "react-native-rfid-chainway-r6";$3
`javascript`
RfidChainwayR6.ScanBLE()
`javascript`
RfidChainwayR6.stopScanBLE()
`javascript`
RfidChainwayR6.connectAddress('address').then(res => {
// res is divices infomation connected
});
`javascript`
RfidChainwayR6.startScanRFID()
`javascript`
RfidChainwayR6.stop()
`javascript`
RfidChainwayR6.clearData().then(res => {
//res == true => done
//res != true => fail
})
`javascript`
DeviceEventEmitter.addListener('ScanBLEListenner', res => {
// res is the information of a device when found
})
`javascript``
DeviceEventEmitter.addListener('ReadRFIDListenner', res => {
// res is the information of a RFID tag when found
})
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT