summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* test/test-mesh: Add "options" to Send/PublishInga Stotland2020-08-261-2/+9
| | | | | This adds a new dictionary paramenter (empty by default) when invoking Send() or Publish() methods.
* test/test-mesh: Add options to "Models" propertyInga Stotland2020-07-011-9/+12
| | | | | This adds options dictionary to "Models" property to stay in sync with mesh-api changes.
* mesh: Add "node is busy" check for Leave() & Attach()Inga Stotland2020-06-101-2/+0
| | | | | | | | | | | | | | | This introduces the following behavior change for those methods on Network interface that specify node token as an input parameter Leave() method: If Leave method is called for a node that is being processed as a result of a Create, Import, Join or Attach method calls in progress, node removal is not allowed and org.bluez.mesh.Error.Busy error is returned. Attach() method: If Attach method is called for a node that is being processed as a result of a Create, Import or Join method calls in progress, node attachment is not allowed and org.bluez.mesh.Error.Busy error is returned.
* 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: Fix payload and model opcode packing in test-meshInga Stotland2020-05-141-25/+69
| | | | | | | | | | | Use correct packing of multi-byte values in message payload bytearray. For example, a 2-byte opcode 0x8204 is packed as 0x82 0x04, i.e. in natural order. Add transaction ID parameter to "set" commands of generic On/Off model. Server will ignore the identical commands with the same transaction ID, source and destination during a timeout period of 6 seconds.
* test/mesh: Remove Provisioner interfaceBrian Gix2020-04-221-140/+2
| | | | | | | | This change removes the Provisioner Initiator from the python test script, along with the menu commands for create, scan and add. This makes it a cleaner Python3 example of a simple On/Off node, and a fuller featured Provisioner/Config Client still exists in the tools subdirectory.
* test/mesh: Fix token format to use all 16 digitsBrian Gix2020-04-211-2/+2
|
* 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/test-mesh: Update to match modified APIsInga Stotland2020-03-301-14/+25
| | | | | This handles updated parameter list in UnprovisionedScan(), AddNode() and ScanResult() D-Bus methods
* test/test-mesh: Add support for static OOB in the agentInga Stotland2020-03-121-0/+19
| | | | | This allows to display a 16-octet key to be entered on the remote device during provisioning.
* test/test-mesh: Fix output of UpdateModelConfig methodInga Stotland2020-02-261-3/+8
| | | | | This correctly unpacks configuration dictionary received in the UpdateModelConfig() method
* test/test-mesh: Fix output of MessageReceived methodInga Stotland2020-02-181-2/+9
| | | | This fixes formatted output of recieved message parameters.
* mesh: Inform application about model subscriptionsMichał Lowas-Rzechonek2019-11-262-11/+27
|
* mesh: Provide destination address in MessageReceived APIMichał Lowas-Rzechonek2019-11-262-8/+8
|
* mesh: Fix test-join to include mandatory VendorModels propertyMichał Lowas-Rzechonek2019-11-261-1/+15
|
* test: Add example-playerLuiz Augusto von Dentz2019-08-101-0/+203
| | | | | This adds an example of registering a player with use of RegisterApplication.
* test: Add example-endpointLuiz Augusto von Dentz2019-08-101-0/+186
| | | | | This adds an example of registering an endpoint with use of RegisterApplication.
* test/test-mesh: Initialize required propertiesInga Stotland2019-07-261-4/+2
| | | | | | | | This initialized required "Models" and "VendorModels" properties wheher the actual models exist or not, according to the mesh-api.txt. In case when an element does not contain either SIG defined models or vendor defineed models, the corresponding properties should contain empty arrays.
* test: This extends the mesh tool to exercise Provisioning methodsBrian Gix2019-07-141-0/+113
| | | | | | Note: This script is *not* a suitable tool for expanding into a Mesh Provisioner. It is only intended to demonstrate the arguments and methods required.
* test: test-mesh - Correctly stop periodic publicationInga Stotland2019-07-011-4/+4
| | | | | | This changes the order of checks for an updated publication period: check for zero period first, and if this is the case, stop sending the periodic model publications.
* mesh: Add "create" command to test appBrian Gix2019-05-151-2/+47
| | | | | Like "join" this command generates a UUID and calls CreateNetwork() and displays the UUID and token.
* test: Enable test-mesh to send raw vendor commandsInga Stotland2019-04-191-1/+32
| | | | | | This adds a sample vendor model to the first element of the mesh node. A new menu entry allows to generate and send a raw vendor command.
* test: Drive test-mesh with a string-based menuInga Stotland2019-04-191-222/+317
| | | | | | Switch to string interactive commands to drive testing of bluetooth-meshd. Re-work the menu to allow global setting of destination address and AppKey index for outbound mesh messages.
* test: Add unified test for mesh node example appInga Stotland2019-03-114-656/+853
| | | | | | | This adds one script, test-mesh, to replace three test-join, example-onoff-server and example-onoff-client. This is menu driven test that allows provisioning (join) and/or connecting existing (attach) nodes.
* 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).
* mesh: Sample Mesh Joiner (provision acceptor)Inga Stotland2019-01-081-0/+408
| | | | | This implements a simple test to excercise Join() method of org.bluez.mesh.Network interface.
* mesh: Sample On/Off Client and ServerInga Stotland2019-01-082-0/+653
| | | | | | These tests excercise the following methods: interface org.bluez.mesh.Network - Attach() interface org.bluez.mesh.Node - Send(), Publish()
* mesh: Sample Provisioning AgentInga Stotland2019-01-081-0/+40
| | | | | This implements a simple provisioning agent to test org.bluez.mesh.ProvisionAgent interface.
* test: Switch to Python3Krzysztof Kozlowski2018-05-291-2/+2
| | | | | | | 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'
* 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
* tests: Remove test-thermometerLuiz Augusto von Dentz2017-11-021-99/+0
| | | | Thermomether interfaces no longer exists.
* test/example-gatt-server: Don't change measuments if not notifyingLuiz Augusto von Dentz2017-10-231-0/+2
| | | | This makes it clearer when notifications are actually in effect.
* 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.
* build: Cleanup GATT profilesLuiz Augusto von Dentz2017-09-064-560/+0
| | | | | Alert, cyclingspeed, heartrate and proximity can all be implemented using the GATT D-Bus API so they no longer need dedicated APIs.
* test/example-gatt-server: Make test service primarySzymon Janc2016-09-221-1/+1
| | | | | This allows to test from Android until included services support is added.
* test/example-gatt-server: Fix few copy-paste errorsSzymon Janc2016-09-221-5/+5
|
* tests/example-gatt-server: Fix using GATT_CHRC_IFACE in DescriptorAlexander Aring2016-09-221-1/+1
| | | | | This patch changes GATT_CHRC_IFACE to GATT_DESC_IFACE when querying properties for Descriptor class.
* 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.
* test/example-gatt-server: Add more commentsLuiz Augusto von Dentz2016-08-021-0/+14
| | | | This adds more comments what the example is doing.
* test/example-gatt-client: Add more commentsLuiz Augusto von Dentz2016-08-021-0/+3
| | | | This adds more comments what the example is doing.
* test/example-gatt-server: Fix error on Property.GetAllLuiz Augusto von Dentz2016-07-141-3/+3
| | | | | | get_properties is a method not a dictionary which cause the following error: TypeError: 'method' object is not subscriptable
* test/simple-endpoint: Fix ClearConfiguration signatureLuiz Augusto von Dentz2016-05-301-3/+3
|
* test: Update GATT examples with the new APILuiz Augusto von Dentz2016-05-183-50/+172
|
* tests/example-gatt-client: Fix using invalid propertyLuiz Augusto von Dentz2016-03-241-20/+22
| | | | | | | | | | | | | | 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'
* test/example-gatt-server: Don't order objectsLuiz Augusto von Dentz2016-03-071-2/+1
| | | | | | This tests if the code is actually handling registration with objects out of order which seems very common practice with ObjectManager implementation.
* test: Fix scripts to run with python 3Kurt McAlpine2016-02-262-13/+20
|
* test: Add device discovery filterGowtham Anandha Babu2016-01-191-0/+32
| | | | | | This patch adds the below mentioned device discovery filters. UUIDs, RSSI, Pathloss, Transport.
* test/example-gatt-server: Make use of RegisterApplicationLuiz Augusto von Dentz2016-01-071-31/+41
| | | | This updates example-gatt-server to use RegisterApplication.
* test: Fix ftp-client not printing progressGowtham Anandha Babu2015-12-041-3/+5
| | | | This patch fixes the keyError while printing transfer progress.