def initServer(self): GPIBManagedServer.initServer(self) self.mydevices = {} # start refreshing only after we have started serving # this ensures that we are added to the list of available # servers before we start sending messages callLater(0.1, self.refreshDevices)
def initServer(self): yield GPIBManagedServer.initServer(self) self.mydevices = {} # start refreshing only after we have started serving # this ensures that we are added to the list of available # servers before we start sending messages callLater(0.1, self.refreshDevices)
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()
def __init__(self): GPIBManagedServer.__init__(self) self.channel = 0 #channel 2 is the FAA pill. GGG pill is chan 1 self.lastTime = time.time()
def initServer(self): """ """ yield GPIBManagedServer.initServer(self) yield util.wakeupCall( 3 )
def initServer(self): """ """ yield GPIBManagedServer.initServer(self) yield util.wakeupCall(3)