Merge pull request #338 from alexdebiasio/development
Implemented _read method of Network printer class. Solves issue #286
This commit is contained in:
commit
88af26f46e
1
.mailmap
1
.mailmap
|
@ -12,3 +12,4 @@ Juanmi Taboada <juanmi@juanmitaboada.com> Juanmi Taboada <juanmi@juan
|
|||
csoft2k <csoft2k@hotmail.com>
|
||||
Sergio Pulgarin <sergio.pulgarin@gmail.com>
|
||||
reck31 <rakesh.gunduka@gmail.com>
|
||||
Alex Debiasio <alex.debiasio@thinkin.io> <alex.debiasio@studenti.unitn.it>
|
||||
|
|
1
AUTHORS
1
AUTHORS
|
@ -1,5 +1,6 @@
|
|||
Ahmed Tahri
|
||||
akeonly
|
||||
Alex Debiasio
|
||||
Asuki Kono
|
||||
belono
|
||||
Christoph Heuel
|
||||
|
|
|
@ -236,6 +236,11 @@ class Network(Escpos):
|
|||
"""
|
||||
self.device.sendall(msg)
|
||||
|
||||
def _read(self):
|
||||
""" Read data from the TCP socket """
|
||||
|
||||
return self.device.recv(16)
|
||||
|
||||
def close(self):
|
||||
""" Close TCP connection """
|
||||
if self.device is not None:
|
||||
|
|
Loading…
Reference in New Issue