def start(self): # Open COM port BEFORE calling to open BACnet interface, so that we can use the # Port.open() method, and pass in only the file descriptor to open_interface(): self.parent.open(1) # specify that port should block to complete read/write ops (default is NON-blocking) self.interface = network.open_interface('MSTP', self.parent.name, \ self.network, MACaddr=self.addr, \ fd_mstp=self.parent.file.fileno()) _Network.start(self)
def start(self): # Open COM port BEFORE calling to open BACnet interface, so that we can use the # Port.open() method, and pass in only the file descriptor to open_interface(): self.parent.open( 1 ) # specify that port should block to complete read/write ops (default is NON-blocking) self.interface = network.open_interface('MSTP', self.parent.name, \ self.network, MACaddr=self.addr, \ fd_mstp=self.parent.file.fileno()) _Network.start(self)
def start(self): if self.debug: print 'open interface' print str(self.network) if self.parent.__class__ == IP: #then under 'internet_protocol node' (<=1.3) name = self.parent.parent.name else: #must be directly under eth# (1.4) name = self.parent.name self.interface = network.open_interface('IP', name, self.network, port=self.port) if self.debug: print 'interface opened, now start children' print 'starting BacnetIP' print self.children_names() _Network.start(self)
def start(self): self.interface = network.open_interface('Ethernet', self.parent.name, self.network) _Network.start(self)