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 = ""
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))
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 = ""
def __init__(self, service): self.notifying = False Characteristic.__init__( self, self.TEMP_CHARACTERISTIC_UUID, ["notify", "read"], service) self.add_descriptor(TempDescriptor(self))
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))
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()))
def __init__(self, service): self.notifying = False Characteristic.__init__( self, RX_UUID, ["notify"], service)
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()))
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))
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))
def __init__(self, service): Characteristic.__init__(self, uuids.PUBLIC_KEY_CHARACTERISTIC_UUID, ["read"], service) self.add_descriptor(PublicKeyDescriptor(self)) self.add_descriptor(utf8Format(self))
def __init__(self, service): Characteristic.__init__(self, uuids.ONBOARDING_KEY_CHARACTERISTIC_UUID, ["read"], service) self.add_descriptor(OnboardingKeyDescriptor(self)) self.add_descriptor(utf8Format(self))
def __init__(self, service): Characteristic.__init__(self, uuids.SOFTWARE_VERSION_CHARACTERISTIC_UUID, ["read"], service)
def __init__(self, bus, index, service): Characteristic.__init__(self, bus, index, self.BODY_SNSR_LOC_UUID, ['read'], service)
def __init__(self, service): Characteristic.__init__(self, uuids.LIGHTS_CHARACTERISTIC_UUID, ["read"], service) self.add_descriptor(LightsDescriptor(self)) self.add_descriptor(utf8Format(self))
def __init__(self, bus, index, service): Characteristic.__init__(self, bus, index, self.HR_CTRL_PT_UUID, ['write'], service)
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)
def __init__(self, service): self.notifying = False Characteristic.__init__(self, self.PRESSURE_CHARACTERISTCI_UUID, ["notify", "read"], service) self.add_descriptor(PressureDescriptor(self))
def __init__(self, service): self.notifying = False Characteristic.__init__(self, self.HUMIDITY_CHARACTERISTCI_UUID, ["notify", "read"], service) self.add_descriptor(HumidityDescriptor(self))
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))
def __init__(self, service): Characteristic.__init__(self, uuids.MAC_ADDRESS_CHARACTERISTIC_UUID, ["read"], service) self.add_descriptor(MacAddressDescriptor(self)) self.add_descriptor(utf8Format(self))
def __init__(self, service): Characteristic.__init__(self, self.UNIT_CHARACTERISTIC_UUID, ["write"], service)
def __init__(self, service): Characteristic.__init__(self, uuids.WIFI_SSID_CHARACTERISTIC_UUID, ["read"], service) self.add_descriptor(WiFiSSIDDescriptor(self)) self.add_descriptor(utf8Format(self))
def __init__(self, service): Characteristic.__init__( self, self.UNIT_CHARACTERISTIC_UUID, ["read", "write"], service) self.add_descriptor(UnitDescriptor(self))
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
def __init__(self, service): Characteristic.__init__(self, uuids.FIRMWARE_REVISION_CHARACTERISTIC_UUID, ["read"], service)
def __init__(self, service): Characteristic.__init__(self, uuids.ETHERNET_ONLINE_CHARACTERISTIC_UUID, ["read"], service) self.add_descriptor(EthernetOnlineDescriptor(self)) self.add_descriptor(utf8Format(self))
def __init__(self, service): Characteristic.__init__(self, uuids.SERIAL_NUMBER_CHARACTERISTIC_UUID, ["read"], service)
def __init__(self, service): Characteristic.__init__(self, uuids.MANUFACTURE_NAME_CHARACTERISTIC_UUID, ["read"], service)
def __init__(self, service): Characteristic.__init__( self, TX_UUID, ["write-without-response"], service)