Ejemplo n.º 1
0
    def __init__(self, device, timeout, retransmits):
        message = "Device with id:'%s' timed out after %s seconds and %s retransmissions." % (
            protocol.mac_string(device.id), timeout, retransmits)

        super(DeviceTimeoutError, self).__init__(message)
        self.device = device
        self.timeout = timeout
        self.retransmits = retransmits
Ejemplo n.º 2
0
 def __repr__(self):
     return u'<Device MAC:%s, Label:%s>' % (protocol.mac_string(self._device_id), repr(self.label))
Ejemplo n.º 3
0
 def __repr__(self):
     return u'<Device MAC:%s, Label:%s>' % (protocol.mac_string(
         self._device_id), repr(self.label))
Ejemplo n.º 4
0
    def __init__(self, device, timeout, retransmits):
        message = "Device with id:'%s' timed out after %s seconds and %s retransmissions." % (protocol.mac_string(device.id), timeout, retransmits)

        super(DeviceTimeoutError, self).__init__(message)
        self.device = device
        self.timeout = timeout
        self.retransmits = retransmits