summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2020-08-24 17:54:35 -0700
committerBrian Gix <brian.gix@intel.com>2020-08-26 08:46:55 -0700
commita359a4c405c85818b4ea1f2fd6b1a06af2ad506f (patch)
tree56c739833c7dae903430bd6da29e2989ff718daa /test
parenta627075715b81a887308478a42885d4bdc6dfb7f (diff)
downloadbluez-a359a4c405c85818b4ea1f2fd6b1a06af2ad506f.tar.gz
test/test-mesh: Add "options" to Send/Publish
This adds a new dictionary paramenter (empty by default) when invoking Send() or Publish() methods.
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-mesh11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/test-mesh b/test/test-mesh
index 5da0278d6..1e1b8724d 100755
--- a/test/test-mesh
+++ b/test/test-mesh
@@ -184,6 +184,9 @@ current_menu = None
user_input = 0
input_error = False
+send_opts = dbus.Dictionary(signature='sv')
+send_opts = {'ForceSegmented' : dbus.Boolean(True)}
+
def raise_error(str_value):
global input_error
@@ -538,14 +541,18 @@ class Model():
self.pub_period = period
def send_publication(self, data):
+ pub_opts = dbus.Dictionary(signature='sv')
+
print('Send publication ', end='')
print(data)
- node.Publish(self.path, self.model_id, data,
+ node.Publish(self.path, self.model_id, pub_opts, data,
reply_handler=generic_reply_cb,
error_handler=generic_error_cb)
def send_message(self, dest, key, data):
- node.Send(self.path, dest, key, data,
+ global send_opts
+
+ node.Send(self.path, dest, key, send_opts, data,
reply_handler=generic_reply_cb,
error_handler=generic_error_cb)