summaryrefslogtreecommitdiff
path: root/test/example-advertisement
Commit message (Collapse)AuthorAgeFilesLines
* test: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 35 License: LGPL-2.1-or-later test/agent.py test/bluezutils.py test/dbusdef.py test/example-advertisement test/example-endpoint test/example-gatt-client test/example-gatt-server test/example-player test/exchange-business-cards test/ftp-client test/get-managed-objects test/get-obex-capabilities test/list-devices test/list-folders test/map-client test/monitor-bluetooth test/opp-client test/pbap-client test/sap_client.py test/simple-endpoint test/simple-obex-agent test/simple-player test/test-adapter test/test-device test/test-discovery test/test-gatt-profile test/test-health test/test-health-sink test/test-hfp test/test-manager test/test-mesh test/test-nap test/test-network test/test-profile test/test-sap-server
* test/example-advertisement: Fix include_tx_powerAlvar Penning2020-05-211-3/+3
| | | | | | | | Adding the Tx Power Level is no longer done via IncludeTxPower, but via the tx-power value in the Includes array. The previous code did not throw an error, but neither led to the insertion of the value. As a result of this change, include_tx_power now adds the Tx Power Level again.
* test/example-advertisement: Fix advertising when discoverableSzymon Janc2020-04-091-1/+1
| | | | | | If adapter is discoverable (or LE-only) advertising was failing due to too big adv data being set. Make sure there is enough space left for flags if needed.
* test/example-advertisement: add shutdown codeHunt, Preston2019-02-261-10/+32
| | | | | | | | | | | | The previous sample code did not release all resources when shutting down. This is fine when it's a standalone program since Python will free all resources automatically when the process terminates. However, in a long-running process, this will eventually cause problems. This changeset shows how to properly release all resources, if an optional command line "--timeout" argument is used. The default is no timeout to maintain behavior of the previous implementation (advertisements will run forever).
* test/example-advertisement: add python3 supportHunt, Preston2018-05-071-9/+15
| | | | | This adds support for python3 to the existing script. The script will now work with either python2 or python3.
* test/example-advertisement: Add Data propertyLuiz Augusto von Dentz2018-05-021-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* test/example-advertisement: add LocalName to propertiesTomasz Duszynski2017-09-141-0/+9
| | | | | Since local name in advertisement is useful for telling the difference between devices expose LocalName via properties.
* test/example-advertisement: Fix data format of propertiesLuiz Augusto von Dentz2016-08-161-6/+6
| | | | D-Bus dictionaries always except the values to be of variant type.
* tests/example-advertisement: Change type to peripheralLuiz Augusto von Dentz2015-05-221-1/+1
| | | | | With broadcast type it won't be connectable which is much more convenient when testing.
* test/example-advertisement: Use IncludeTxPowerArman Uguray2015-04-231-1/+1
| | | | | This patch changes the example-advertisement script to use IncludeTxPower rather than IncludeTXPower.
* test: add IncludeTXPower to example-advertisementMichael Janssen2015-04-161-0/+4
|
* test: improvements to example-advertisementMichael Janssen2015-04-071-4/+8
| | | | | | | | | 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.
* test: Reorganize LE Python example scriptsArman Uguray2015-03-311-0/+170
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.