def _send_code(self, code, protocol, pulselength):
        _LOGGER.info('Sending code: %s', code)
        res = self._rfdevice.tx_code(code, protocol, pulselength)
        if not res:
            _LOGGER.error('Sending code %s failed', code)
        return res
Send the code with a specified pulselength.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/rpi_rf.py/RPiRFSwitch._send_code