This adds a new dictionary paramenter (empty by default) when invoking Send() or Publish() methods. --- test/test-mesh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/test-mesh b/test/test-mesh index 5da0278d6..918ec8799 100755 --- a/test/test-mesh +++ b/test/test-mesh @@ -183,6 +183,8 @@ current_menu = None user_input = 0 input_error = False +#send_opts = {'ForcedSegmented' : dbus.Boolean(False)} +send_opts = dbus.Dictionary(signature='sv') def raise_error(str_value): global input_error @@ -538,14 +540,18 @@ class Model(): self.pub_period = period def send_publication(self, data): + global send_opts + print('Send publication ', end='') print(data) - node.Publish(self.path, self.model_id, data, + node.Publish(self.path, self.model_id, send_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) -- 2.26.2