| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This adds a new dictionary paramenter (empty by default) when
invoking Send() or Publish() methods.
|
|
|
|
|
| |
This adds options dictionary to "Models" property to stay
in sync with mesh-api changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This handles updated parameter list in UnprovisionedScan(),
AddNode() and ScanResult() D-Bus methods
|
|
|
|
|
| |
This allows to display a 16-octet key to be entered on the remote
device during provisioning.
|
|
|
|
|
| |
This correctly unpacks configuration dictionary received
in the UpdateModelConfig() method
|
|
|
|
| |
This fixes formatted output of recieved message parameters.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This adds an example of registering a player with use of
RegisterApplication.
|
|
|
|
|
| |
This adds an example of registering an endpoint with use of
RegisterApplication.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Like "join" this command generates a UUID and calls CreateNetwork()
and displays the UUID and token.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
| |
This implements a simple test to excercise Join() method
of org.bluez.mesh.Network interface.
|
|
|
|
|
|
| |
These tests excercise the following methods:
interface org.bluez.mesh.Network - Attach()
interface org.bluez.mesh.Node - Send(), Publish()
|
|
|
|
|
| |
This implements a simple provisioning agent to test
org.bluez.mesh.ProvisionAgent interface.
|
|
|
|
|
|
|
| |
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.
|