@alarify-io/bluetooth-printer
v3.1.0
Published
bluetooth printer plugin
Downloads
16
Readme
hc-bluetooth-printer
bluetooth printer plugin
Publish plugin
npm publish --registry https://npm.pkg.jetbrains.space/happytech/p/hc/hc-npm/Install
npm install hc-bluetooth-printer
npx cap syncAPI
echo(...)status()list()connect(...)connected()disconnect()setEncoding(...)printText(...)printTextSizeAlign(...)printBase64(...)printTitle(...)printImageUrl(...)printPOSCommand(...)printQRCode(...)printBarcode(...)
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
status()
status() => Promise<{ value: boolean; }>Returns: Promise<{ value: boolean; }>
list()
list() => Promise<{ value: { name: string; address: string; type: number; }[]; }>Returns: Promise<{ value: { name: string; address: string; type: number; }[]; }>
connect(...)
connect(options: { name: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------ |
| options | { name: string; } |
Returns: Promise<{ value: string; }>
connected()
connected() => Promise<{ value: boolean; }>Returns: Promise<{ value: boolean; }>
disconnect()
disconnect() => Promise<{ value: string; }>Returns: Promise<{ value: string; }>
setEncoding(...)
setEncoding(options: { encoding: string; }) => Promise<undefined | void>| Param | Type |
| ------------- | ---------------------------------- |
| options | { encoding: string; } |
printText(...)
printText(options: { text: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------ |
| options | { text: string; } |
Returns: Promise<{ value: string; }>
printTextSizeAlign(...)
printTextSizeAlign(options: { text: string; size: number; align: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ----------------------------------------------------------- |
| options | { text: string; size: number; align: number; } |
Returns: Promise<{ value: string; }>
printBase64(...)
printBase64(options: { imgData: string; align: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------------------------ |
| options | { imgData: string; align: number; } |
Returns: Promise<{ value: string; }>
printTitle(...)
printTitle(options: { text: string; size: number; align: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ----------------------------------------------------------- |
| options | { text: string; size: number; align: number; } |
Returns: Promise<{ value: string; }>
printImageUrl(...)
printImageUrl(options: { url: string; align: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | -------------------------------------------- |
| options | { url: string; align: number; } |
Returns: Promise<{ value: string; }>
printPOSCommand(...)
printPOSCommand(options: { dataHex: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | --------------------------------- |
| options | { dataHex: string; } |
Returns: Promise<{ value: string; }>
printQRCode(...)
printQRCode(options: { text: string; align: number; model: number; size: number; eccLevel: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | -------------------------------------------------------------------------------------------- |
| options | { text: string; align: number; model: number; size: number; eccLevel: number; } |
Returns: Promise<{ value: string; }>
printBarcode(...)
printBarcode(options: { system: number; data: string; align: number; position: number; font: number; height: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------------------------------------------------------------------------------------- |
| options | { system: number; data: string; align: number; position: number; font: number; height: number; } |
Returns: Promise<{ value: string; }>
