java-plugin
v0.1.1
Published
bluetooth connection and can print using bluetooth
Readme
java-plugin
bluetooth connection and can print using bluetooth
Install
npm install java-plugin
npx cap syncAPI
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
testPrint()
testPrint() => Promise<{ value: string; }>Returns: Promise<{ value: string; }>
connectToDevice(...)
connectToDevice(options: { address: string; }) => Promise<{ value: string; success: string; error: string; }>| Param | Type |
| ------------- | --------------------------------- |
| options | { address: string; } |
Returns: Promise<{ value: string; success: string; error: string; }>
printTicket(...)
printTicket(options: { firstName: string; drawDate: string; datePrinted: string; qrcode: string; games: string; total: string; drawTime: string; agentCode: string; maxSize: number; betTime: string; betDate: string; area: string; gameType: string; referenceNumber: string; combinations: string; }) => Promise<{ success: string; error: string; }>| Param | Type |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| options | { firstName: string; drawDate: string; datePrinted: string; qrcode: string; games: string; total: string; drawTime: string; agentCode: string; maxSize: number; betTime: string; betDate: string; area: string; gameType: string; referenceNumber: string; combinations: string; } |
Returns: Promise<{ success: string; error: string; }>
connectBluetooth(...)
connectBluetooth(options: { macAddress: string; }) => Promise<void>| Param | Type |
| ------------- | ------------------------------------ |
| options | { macAddress: string; } |
