def setFrequency(self, frequency):
        msg = message.ChannelFrequencyMessage(number=self.number)
        msg.setFrequency(frequency)
        self.node.driver.write(msg.encode())
        if self.node.evm.waitForAck(msg) != RESPONSE_NO_ERROR:
            raise ChannelError('Could not set channel frequency.')
dataset/ETHPy150Open mvillalba/python-ant/src/ant/core/node.py/Channel.setFrequency/original