mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	implement read for Serial
This commit is contained in:
		@@ -154,6 +154,10 @@ class Serial(Escpos):
 | 
			
		||||
        :type msg: bytes
 | 
			
		||||
        """
 | 
			
		||||
        self.device.write(msg)
 | 
			
		||||
        
 | 
			
		||||
    def _read(self):
 | 
			
		||||
        """ Reads a data buffer and returns it to the caller. """
 | 
			
		||||
        return self.device.read(16)
 | 
			
		||||
 | 
			
		||||
    def close(self):
 | 
			
		||||
        """ Close Serial interface """
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user