escpos-php
Public Member Functions | List of all members
Mike42\Escpos\PrintConnectors\RawbtPrintConnector Class Reference

Print connector for android RawBT application https://play.google.com/store/apps/details?id=ru.a402d.rawbtprinter. More...

Inheritance diagram for Mike42\Escpos\PrintConnectors\RawbtPrintConnector:
Inheritance graph
[legend]
Collaboration diagram for Mike42\Escpos\PrintConnectors\RawbtPrintConnector:
Collaboration graph
[legend]

Public Member Functions

 __construct ()
 Create new print connector.
 
 clear ()
 
 __destruct ()
 Print connectors should cause a NOTICE if they are deconstructed when they have not been finalized.
 
 finalize ()
 Finish using this print connector (close file, socket, send accumulated output, etc).
 
 getData ()
 
 read ($len)
 Read data from the printer.
Parameters
string$lenLength of data to read.
Returns
string Data read from the printer, or false where reading is not possible.
More...
 
 write ($data)
 Write data to the print connector. More...
 

Detailed Description

Print connector for android RawBT application https://play.google.com/store/apps/details?id=ru.a402d.rawbtprinter.

Member Function Documentation

◆ getData()

Mike42\Escpos\PrintConnectors\RawbtPrintConnector::getData ( )
Returns
string Get the accumulated data that has been sent to this buffer.

◆ read()

string data which the printer will provide on next Mike42\Escpos\PrintConnectors\RawbtPrintConnector::read (   $len)

Read data from the printer.

Parameters
string$lenLength of data to read.
Returns
string Data read from the printer, or false where reading is not possible.

See also
PrintConnector::read()

Implements Mike42\Escpos\PrintConnectors\PrintConnector.

◆ write()

Mike42\Escpos\PrintConnectors\RawbtPrintConnector::write (   $data)

Write data to the print connector.

Parameters
string$dataThe data to write

Implements Mike42\Escpos\PrintConnectors\PrintConnector.


The documentation for this class was generated from the following file: