コード例 #1
0
 def handleDeviceMessage(self, *args):
     """We override this function so that whenever a new SIM900 is
     added, and a message is sent out, we refresh the devices. This
     has the benefit of being able to start this server, the 
     GPIB Device Manager, and the GPIB Bus Server, in any order."""
     yield GPIBManagedServer.handleDeviceMessage(self, *args)
     if args[0] == self.deviceName: 
         self.refreshDevices()
コード例 #2
0
 def handleDeviceMessage(self, *args):
     """We override this function so that whenever a new SIM900 is
     added, and a message is sent out, we refresh the devices. This
     has the benefit of being able to start this server, the
     GPIB Device Manager, and the GPIB Bus Server, in any order."""
     yield GPIBManagedServer.handleDeviceMessage(self, *args)
     if args[0] == self.deviceName:
         self.refreshDevices()