示例#1
0
    def __init__(self, nodeid):
        if sys.platform != 'win32':
            self.interface = node_cli.otCli(nodeid)
        else:
            self.interface = node_api.otApi(nodeid)

        self.interface.clear_whitelist()
        self.interface.disable_whitelist()
        self.interface.set_timeout(100)
示例#2
0
    def __init__(self, nodeid, is_mtd=False):
        if sys.platform != 'win32':
            self.interface = node_cli.otCli(nodeid, is_mtd)
        else:
            self.interface = node_api.otApi(nodeid)

        self.interface.clear_whitelist()
        self.interface.disable_whitelist()
        self.interface.set_timeout(100)
示例#3
0
    def __init__(self, nodeid, is_mtd=False, simulator=None):
        self.simulator = simulator

        if sys.platform != 'win32':
            self.interface = node_cli.otCli(nodeid, is_mtd, simulator=simulator)
        else:
            self.interface = node_api.otApi(nodeid)

        self.interface.clear_whitelist()
        self.interface.disable_whitelist()
        self.interface.set_timeout(100)