mlather
v0.1.7
Published
Capacitor Tcp Printer Plugin
Downloads
2
Readme
mlather
Capacitor Tcp Printer Plugin
Install
npm install mlather
npx cap sync
API
printtcp(...)
printtcp(opts: TcpOptions) => Promise<void>
| Param | Type |
| ---------- | ------------------------------------------------- |
| opts
| TcpOptions |
TcpOptions
| Prop | Type |
| ----------------- | ------------------- |
| id
| string |
| address
| string |
| port
| number |
| text
| string |
| mmFeedPaper
| number |
EXAMPLE
import { Component } from '@angular/core';
import {Mlather} from 'mlather';
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
constructor() {
Mlather.printtcp({
id: 'test',
address: '123.0.0.0',
port: 9001,
text: 'testing',
mmFeedPaper: 10
})
.then((data:any) =>{
console.log(data)
})
}
}