0.1.7 • Published 3 years ago

mlather v0.1.7

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 years ago

mlather

Capacitor Tcp Printer Plugin

Install

npm install mlather
npx cap sync

API

printtcp(...)

printtcp(opts: TcpOptions) => Promise<void>
ParamType
optsTcpOptions

TcpOptions

PropType
idstring
addressstring
portnumber
textstring
mmFeedPapernumber

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)
    })
  }

}
0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.1

3 years ago