Example #1
0
 def connectionLost(self, reason):
     self.object['hw_connected'] = 0
     self.object['V1'] = np.nan
     self.object['V2'] = np.nan
     self.object['V3'] = np.nan
     self.object['I1'] = np.nan
     self.object['I2'] = np.nan
     self.object['I3'] = np.nan
     self.object['O1'] = -1
     self.object['O2'] = -1
     self.object['O3'] = -1
     SimpleProtocol.connectionLost(self, reason)
Example #2
0
 def connectionLost(self, reason):
     self.object['hw_connected'] = 0
     SimpleProtocol.connectionLost(self, reason)
Example #3
0
 def connectionLost(self, reason):
     self.object['hw_connected'] = 0
     self.object['out_load'] = np.nan
     self.object['volt_unit'] = 'none'
     SimpleProtocol.connectionLost(self, reason)
Example #4
0
 def connectionLost(self, reason):
     self.object['hw_connected'] = 0
     self.object['status'] = {}
     self.object['state'] = 'unknown'
     SimpleProtocol.connectionLost(self, reason)
Example #5
0
    def connectionLost(self, reason):
        if self.name in self.object['clients']:
            self.log("%s disconnected" % self.name, type='info')
            # print "Disconnected:", self.name

        SimpleProtocol.connectionLost(self, reason)