Implemented _read method of Network printer class

This commit is contained in:
Alex Debiasio 2019-06-13 21:28:46 +02:00
parent 5ac5a24b50
commit 8bf0e08659
1 changed files with 5 additions and 0 deletions

View File

@ -236,6 +236,11 @@ class Network(Escpos):
""" """
self.device.sendall(msg) self.device.sendall(msg)
def _read(self):
""" Read data from the TCP socket """
return self.device.recv(16)
def close(self): def close(self):
""" Close TCP connection """ """ Close TCP connection """
if self.device is not None: if self.device is not None: