

def setNetworkKey(self, number, key=None):
    if key:
        self.networks[number] = key
    msg = message.NetworkKeyMessage()
    msg.setNumber(number)
    msg.setKey(self.networks[number].key)
    self.driver.write(msg.encode())
    self.evm.waitForAck(msg)
    self.networks[number].number = number

dataset/ETHPy150Open mvillalba/python-ant/src/ant/core/node.py Node.setNetworkKey/original