| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Python2 will be maintained till end of 2019. Switch to Python3 by
replacing iteritems() with items() to fix error when runnig test-nap:
AttributeError: 'dbus.Dictionary' object has no attribute 'iteritems'
|
|
|
|
|
| |
This adds support for python3 to the existing script. The script will
now work with either python2 or python3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds Data property using TDS AD type:
@ MGMT Command: Add Advertising (0x003e) plen 59
Instance: 1
Flags: 0x00000001
Switch into Connectable mode
Duration: 0
Timeout: 0
Advertising data length: 29
16-bit Service UUIDs (complete): 2 entries
Heart Rate (0x180d)
Battery Service (0x180f)
Company: internal use (65535)
Data: 0001020304
Service Data (UUID 0x9999): 0001020304
Transport Discovery Data
Organization: Bluetooth SIG (0x01)
Flags: 0x01
Role: 0x01
Seeker Only
Transport Data Incomplete: False (0x00)
Transport State: 0x00
Off
Length: 0
Data:
Scan response length: 19
Name (complete): TestAdvertisement
|
|
|
|
| |
Thermomether interfaces no longer exists.
|
|
|
|
| |
This makes it clearer when notifications are actually in effect.
|
|
|
|
|
| |
Since local name in advertisement is useful for telling the difference
between devices expose LocalName via properties.
|
|
|
|
|
| |
Alert, cyclingspeed, heartrate and proximity can all be implemented
using the GATT D-Bus API so they no longer need dedicated APIs.
|
|
|
|
|
| |
This allows to test from Android until included services support is
added.
|
| |
|
|
|
|
|
| |
This patch changes GATT_CHRC_IFACE to GATT_DESC_IFACE when querying
properties for Descriptor class.
|
|
|
|
| |
D-Bus dictionaries always except the values to be of variant type.
|
|
|
|
| |
This adds more comments what the example is doing.
|
|
|
|
| |
This adds more comments what the example is doing.
|
|
|
|
|
|
| |
get_properties is a method not a dictionary which cause the following
error:
TypeError: 'method' object is not subscriptable
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes the following trace caused by GattServices1 no longer
containing a property called Characteristics:
Traceback (most recent call last):
File "./example-gatt-client", line 221, in <module>
main()
File "./example-gatt-client", line 207, in main
if not process_hr_service(service_path):
File "./example-gatt-client", line 167, in process_hr_service
chrc_paths = service_props['Characteristics']
KeyError: 'Characteristics'
|
|
|
|
|
|
| |
This tests if the code is actually handling registration with objects out
of order which seems very common practice with ObjectManager
implementation.
|
| |
|
|
|
|
|
|
| |
This patch adds the below mentioned device discovery
filters.
UUIDs, RSSI, Pathloss, Transport.
|
|
|
|
| |
This updates example-gatt-server to use RegisterApplication.
|
|
|
|
| |
This patch fixes the keyError while printing transfer progress.
|
|
|
|
|
|
| |
PropertyChanged is left over from BlueZ 4.x now it is PropertiesChanged.
However in this test it does not make sense to register for this signal
as StopDiscovery is never called from this test.
|
|
|
|
|
| |
test-gatt-profile can be used to register a GATT based profile using
GattManager1 interface.
|
|
|
|
| |
Add support to player name mapping it to Identity property from MPRIS.
|
|
|
|
|
| |
With broadcast type it won't be connectable which is much more convenient
when testing.
|
|
|
|
| |
This adds new attributes that requires encryption for TestService.
|
|
|
|
|
| |
This patch changes the example-advertisement script to use
IncludeTxPower rather than IncludeTXPower.
|
| |
|
|
|
|
| |
This makes test-nap run indefinitely until ctrl+c is pressed.
|
|
|
|
|
|
|
|
|
| |
Improves the example-advertisement script in two ways:
It uses 16-bit service UUIDs so that it does not overflow the
Advertisement Data
It turns the adapter's power on so that it works out of the box.
|
|
|
|
|
| |
This patch introduces test/example-gatt-client which implements a simple
D-Bus client application for a remote Heart Rate service.
|
|
|
|
| |
Aligned the string constants for better readability.
|
|
|
|
| |
Added parenthesese around print statements to conform to Python 3.
|
|
|
|
|
|
|
|
|
| |
This patch moves tools/gatt-example to test/ and renames it to
example-gatt-server in preparation for example-gatt-client.
The same naming convention (example-*) is also adopted for
test/advertisement-example, so it's now called
test/example-advertisement. Also, both scripts now have the execute
set appropriately to be consistent with the other Python scripts.
|
| |
|
|
|
|
|
| |
Adds support to fetch spd,fav phonebook.
Tested using PTS test case TC_PCE_PBB_BV_01_C.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
simple-service no longer works since the API it uses no longer exists and
Profile API already has a similar tool.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This patch extends gatt-service to call RegisterService() when org.bluez
service gets connected to the system bus.
|
|
|
|
|
| |
This patch implements signal handling to run cleanup tasks before
exiting.
|
|
|
|
|
| |
This patch adds the initial code for an external GATT service example.
It implements the API defined at doc/gatt-api.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some test scripts use "from gi.repository import GObject" whereas others
use "import gobject". gi.repository is not always available on embedded
systems, so convert all instances to this format:
try:
from gi.repository import GObject
except ImportError:
import gobject as GObject
Also, sort the imports in this order: system, dbus, gobject, bluezutils
|
| |
|
| |
|