示例#1
0
 def __init__(self,
              max_nb_files=10000,
              set_condition_list = [10],
              **kwargs):
     EthernetProvider.__init__(self, **kwargs)
     self.max_nb_files = max_nb_files
     self._set_condition_list = set_condition_list
示例#2
0
 def __init__(self, scan_interval=0,**kwargs):
     '''
     scan_interval (int): time between scans in seconds
     '''
     EthernetProvider.__init__(self,**kwargs)
     if scan_interval == 0:
         raise ValueError("scan interval must be > 0")
     self.scan_interval = scan_interval