--- test/example-advertisement | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/example-advertisement b/test/example-advertisement index 6e47391..1198f2e 100755 --- a/test/example-advertisement +++ b/test/example-advertisement @@ -51,6 +51,7 @@ class Advertisement(dbus.service.Object): self.manufacturer_data = None self.solicit_uuids = None self.service_data = None + self.include_tx_power = None dbus.service.Object.__init__(self, bus, self.path) def get_properties(self): @@ -68,6 +69,8 @@ class Advertisement(dbus.service.Object): if self.service_data is not None: properties['ServiceData'] = dbus.Dictionary(self.service_data, signature='say') + if self.include_tx_power is not None: + properties['IncludeTXPower'] = dbus.Boolean(self.include_tx_power) return {LE_ADVERTISEMENT_IFACE: properties} def get_path(self): @@ -117,6 +120,7 @@ class TestAdvertisement(Advertisement): self.add_service_uuid('180F') self.add_manufacturer_data(0xffff, [0x00, 0x01, 0x02, 0x03, 0x04]) self.add_service_data('9999', [0x00, 0x01, 0x02, 0x03, 0x04]) + self.include_tx_power = True def register_ad_cb(): -- 2.2.0.rc0.207.ga3a616c -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html