test/example-gatt-server: Make test service primary

This allows to test from Android until included services support is
added.
This commit is contained in:
Szymon Janc 2016-09-21 22:35:52 +02:00 committed by Luiz Augusto von Dentz
parent ba38b538a8
commit 3d117bc965

View File

@ -438,7 +438,7 @@ class TestService(Service):
TEST_SVC_UUID = '12345678-1234-5678-1234-56789abcdef0'
def __init__(self, bus, index):
Service.__init__(self, bus, index, self.TEST_SVC_UUID, False)
Service.__init__(self, bus, index, self.TEST_SVC_UUID, True)
self.add_characteristic(TestCharacteristic(bus, 0, self))
self.add_characteristic(TestEncryptCharacteristic(bus, 1, self))
self.add_characteristic(TestSecureCharacteristic(bus, 2, self))