0.2.0 • Published 2 years ago
kopessa-rfid v0.2.0
kopessa-rfid
Capacitor Plugin for managing Chainway R5 Wearable BT RFID Reader
Install
npm install kopessa-rfid
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options | { value: string; } |
Returns: Promise<{ value: string; }>
connect(...)
connect(options: ConnectOptions) => Promise<{ value: ConnectionStatus; }>
Connect the RFID device given address.
Param | Type |
---|---|
options | ConnectOptions |
Returns: Promise<{ value: ConnectionStatus; }>
Since: 0.1.1
disconnect()
disconnect() => Promise<{ value: boolean; }>
Disconnect from the RFID device.
Returns: Promise<{ value: boolean; }>
Since: 0.1.1
read()
read() => Promise<OperationReturn>
Read data from TAG Memory with the RFID device. The default TAG Memory readed is EPC
Returns: Promise<OperationReturn>
Since: 0.1.1
write(...)
write(options: WriteOptions) => Promise<OperationReturn>
Write data from TAG Memory with the RFID device. Same as write, the default TAG Memory is EPC
Param | Type |
---|---|
options | WriteOptions |
Returns: Promise<OperationReturn>
Since: 0.1.1
Interfaces
ConnectOptions
Prop | Type |
---|---|
address | string |
OperationReturn
Prop | Type |
---|---|
status | boolean |
message | string |
WriteOptions
Prop | Type |
---|---|
data | string |
Enums
ConnectionStatus
Members | Value |
---|---|
DISCONNECTED | 0 |
CONNECTED | 1 |
CONNECTING | 2 |
UNKNOWN | '---' |