def setID(self, dev_type, dev_num, trans_type):
        msg = message.ChannelIDMessage(number=self.number)
        msg.setDeviceType(dev_type)
        msg.setDeviceNumber(dev_num)
        msg.setTransmissionType(trans_type)
        self.node.driver.write(msg.encode())
        if self.node.evm.waitForAck(msg) != RESPONSE_NO_ERROR:
            raise ChannelError('Could not set channel ID.')
dataset/ETHPy150Open mvillalba/python-ant/src/ant/core/node.py/Channel.setID/original