def data_received(self, data):
        """Receive data from the protocol.

        Called when asyncio.Protocol detects received data from network.
        """
        _LOGGER.debug("Starting: data_received")
        _LOGGER.debug('Received %d bytes from PLM: %s',
                      len(data), binascii.hexlify(data))
        self._buffer.put_nowait(data)
        asyncio.ensure_future(self._peel_messages_from_buffer(),
                              loop=self._loop)

        _LOGGER.debug("Finishing: data_received")
def data_received ( self , data ) : _LOGGER . debug ( "Starting: data_received" ) _LOGGER . debug ( 'Received %d bytes from PLM: %s' , len ( data ) , binascii . hexlify ( data ) ) self . _buffer . put_nowait ( data ) asyncio . ensure_future ( self . _peel_messages_from_buffer ( ) , loop = self . _loop ) _LOGGER . debug ( "Finishing: data_received" )
Receive data from the protocol.

        Called when asyncio.Protocol detects received data from network.