mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	Implemented _read method of Network printer class
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user