summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2020-08-24 17:54:35 -0700
committerAbhay Agarwal <ay.agarwal@samsung.com>2020-12-28 11:50:04 +0530
commitb5d771759f5add06ee55d2a12d154d39a6430d7c (patch)
treea5e7e6152b393a2d53b7cb62d2149b72e8070b56 /test
parent99be3441b32efa1cf8e32d0b7692580bfab8a39f (diff)
downloadbluez-b5d771759f5add06ee55d2a12d154d39a6430d7c.tar.gz
bluez-b5d771759f5add06ee55d2a12d154d39a6430d7c.tar.bz2
bluez-b5d771759f5add06ee55d2a12d154d39a6430d7c.zip
test/test-mesh: Add "options" to Send/Publish
This adds a new dictionary paramenter (empty by default) when invoking Send() or Publish() methods. Change-Id: I1b129cb00947159e667333a0437b7563d054a11b Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
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 ef8d556c..993d92a5 100755
--- a/test/test-mesh
+++ b/test/test-mesh
@@ -182,6 +182,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
@@ -536,14 +539,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)