Пример #1
0
 def __init__(self, service):
     Characteristic.__init__(
             self, uuids.DIAGNOSTICS_CHARACTERISTIC_UUID,
             ["read"], service)
     self.add_descriptor(DiagnosticsDescriptor(self))
     self.add_descriptor(opaqueStructure(self))
     self.p2pstatus = ""
Пример #2
0
 def __init__(self, service):
     self.notifying = False
     Characteristic.__init__(
             self, uuids.WIFI_REMOVE_CHARACTERISTIC_UUID,
             ["read", "write", "notify"], service)
     self.add_descriptor(WiFiRemoveDescriptor(self))
     self.add_descriptor(opaqueStructure(self))
Пример #3
0
 def __init__(self, service):
     self.notifying = False
     Characteristic.__init__(self, uuids.WIFI_CONNECT_CHARACTERISTIC_UUID,
                             ["read", "write", "notify"], service)
     self.add_descriptor(WiFiConnectDescriptor(self))
     self.add_descriptor(opaqueStructure(self))
     self.WiFiStatus = ""
Пример #4
0
    def __init__(self, service):
        self.notifying = False

        Characteristic.__init__(
                self, self.TEMP_CHARACTERISTIC_UUID,
                ["notify", "read"], service)
        self.add_descriptor(TempDescriptor(self))
Пример #5
0
    def __init__(self, service):
        self.notifying = False
        self.indicating = False

        Characteristic.__init__(
                self, self.LCIR06_CHARACTERISTIC_UUID,
                ["notify", "read", "indicate"], service)
        self.add_descriptor(LCIR06Descriptor(self))
Пример #6
0
 def __init__(self, service):
     Characteristic.__init__(self, uuids.ADD_GATEWAY_CHARACTERISTIC_UUID,
                             ["read", "write", "notify"], service)
     self.add_descriptor(AddGatewayDescriptor(self))
     self.add_descriptor(opaqueStructure(self))
     self.notifyValue = []
     for c in "init":
         self.notifyValue.append(dbus.Byte(c.encode()))
Пример #7
0
    def __init__(self, service):
        self.notifying = False

        Characteristic.__init__(
                self, 
                RX_UUID,
                ["notify"],
                service)
Пример #8
0
 def __init__(self, service):
     Characteristic.__init__(self,
                             uuids.ASSERT_LOCATION_CHARACTERISTIC_UUID,
                             ["read", "write", "notify"], service)
     self.add_descriptor(AssertLocationDescriptor(self))
     self.add_descriptor(opaqueStructure(self))
     self.notifyValue = []
     for c in "init":
         self.notifyValue.append(dbus.Byte(c.encode()))
Пример #9
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(
             self, bus, index,
             self.TEST_CHRC_UUID,
             ['read', 'write', 'writable-auxiliaries'],
             service)
     self.value = []
     self.add_descriptor(ExampleDescriptor(bus, 0, self))
     self.add_descriptor(
             CharacteristicUserDescriptionDescriptor(bus, 1, self))
Пример #10
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(
             self, bus, index,
             self.TEST_CHRC_UUID,
             ['encrypt-read', 'encrypt-write'],
             service)
     self.value = []
     self.add_descriptor(ExampleEncryptDescriptor(bus, 2, self))
     self.add_descriptor(
             CharacteristicUserDescriptionDescriptor(bus, 3, self))
Пример #11
0
 def __init__(self, service):
     Characteristic.__init__(self, uuids.PUBLIC_KEY_CHARACTERISTIC_UUID,
                             ["read"], service)
     self.add_descriptor(PublicKeyDescriptor(self))
     self.add_descriptor(utf8Format(self))
Пример #12
0
 def __init__(self, service):
     Characteristic.__init__(self, uuids.ONBOARDING_KEY_CHARACTERISTIC_UUID,
                             ["read"], service)
     self.add_descriptor(OnboardingKeyDescriptor(self))
     self.add_descriptor(utf8Format(self))
Пример #13
0
 def __init__(self, service):
     Characteristic.__init__(self,
                             uuids.SOFTWARE_VERSION_CHARACTERISTIC_UUID,
                             ["read"], service)
Пример #14
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, self.BODY_SNSR_LOC_UUID,
                             ['read'], service)
Пример #15
0
 def __init__(self, service):
     Characteristic.__init__(self, uuids.LIGHTS_CHARACTERISTIC_UUID,
                             ["read"], service)
     self.add_descriptor(LightsDescriptor(self))
     self.add_descriptor(utf8Format(self))
Пример #16
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, self.HR_CTRL_PT_UUID,
                             ['write'], service)
Пример #17
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, self.BATTERY_LVL_UUID,
                             ['read', 'notify'], service)
     self.notifying = False
     self.battery_lvl = 100
     gobject.timeout_add(5000, self.drain_battery)
Пример #18
0
    def __init__(self, service):
        self.notifying = False

        Characteristic.__init__(self, self.PRESSURE_CHARACTERISTCI_UUID,
                                ["notify", "read"], service)
        self.add_descriptor(PressureDescriptor(self))
Пример #19
0
    def __init__(self, service):
        self.notifying = False

        Characteristic.__init__(self, self.HUMIDITY_CHARACTERISTCI_UUID,
                                ["notify", "read"], service)
        self.add_descriptor(HumidityDescriptor(self))
Пример #20
0
 def __init__(self, service):
     Characteristic.__init__(
         self, uuids.WIFI_CONFIGURED_SERVICES_CHARACTERISTIC_UUID, ["read"],
         service)
     self.add_descriptor(WiFiConfiguredServicesDescriptor(self))
     self.add_descriptor(opaqueStructure(self))
Пример #21
0
 def __init__(self, service):
     Characteristic.__init__(self, uuids.MAC_ADDRESS_CHARACTERISTIC_UUID,
                             ["read"], service)
     self.add_descriptor(MacAddressDescriptor(self))
     self.add_descriptor(utf8Format(self))
Пример #22
0
 def __init__(self, service):
     Characteristic.__init__(self, self.UNIT_CHARACTERISTIC_UUID, ["write"],
                             service)
Пример #23
0
 def __init__(self, service):
     Characteristic.__init__(self, uuids.WIFI_SSID_CHARACTERISTIC_UUID,
                             ["read"], service)
     self.add_descriptor(WiFiSSIDDescriptor(self))
     self.add_descriptor(utf8Format(self))
Пример #24
0
 def __init__(self, service):
     Characteristic.__init__(
             self, self.UNIT_CHARACTERISTIC_UUID,
             ["read", "write"], service)
     self.add_descriptor(UnitDescriptor(self))
Пример #25
0
 def __init__(self, bus, index, service):
     Characteristic.__init__(self, bus, index, self.HR_MSRMT_UUID,
                             ['notify'], service)
     self.notifying = False
     self.hr_ee_count = 0
Пример #26
0
 def __init__(self, service):
     Characteristic.__init__(self,
                             uuids.FIRMWARE_REVISION_CHARACTERISTIC_UUID,
                             ["read"], service)
Пример #27
0
 def __init__(self, service):
     Characteristic.__init__(self,
                             uuids.ETHERNET_ONLINE_CHARACTERISTIC_UUID,
                             ["read"], service)
     self.add_descriptor(EthernetOnlineDescriptor(self))
     self.add_descriptor(utf8Format(self))
Пример #28
0
 def __init__(self, service):
     Characteristic.__init__(self, uuids.SERIAL_NUMBER_CHARACTERISTIC_UUID,
                             ["read"], service)
Пример #29
0
 def __init__(self, service):
     Characteristic.__init__(self,
                             uuids.MANUFACTURE_NAME_CHARACTERISTIC_UUID,
                             ["read"], service)
Пример #30
0
 def __init__(self, service):
     Characteristic.__init__(
             self,
             TX_UUID,
             ["write-without-response"],
             service)