Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1898534pxa; Sun, 23 Aug 2020 21:47:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf7L0uNrTEG4t69nbzVQzQsBWfqYmb4B7s3hpHXYJLn/jTGiH95vzRUqmFUUixwqqRrgBc X-Received: by 2002:a17:906:ef8c:: with SMTP id ze12mr4230123ejb.500.1598244461808; Sun, 23 Aug 2020 21:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598244461; cv=none; d=google.com; s=arc-20160816; b=ghjS7/yMSWjlYMnGAWoTaYgSzU2HNOTFe/MhzPIegErkRgEJ+B6s/IR075LRcX7Xeq 1OHxcYTdUV3Dsyzdd/TSz8VPk0W/xfqhGOgpjGHAGOtMd7LZtPXvy+GW5V/vNNPbU9KR eorKUg6rUBUXJeOcX3NMc6S9MkWF3GeocfYKIVSsBuJwAaDceX0hpBt9nRWvKL83lPey 4DftOpP6wGgPtrCXCeIExlwkU61k9p/12pRfruQ2+mGIBKwv9IsxwGoEFonpxVskCrFB A63ej2tGRMeCGaruQTPL9UxDi+LhHKqzJaC6zIbWKa2Z2LsWTRzjujp7jSj6VWWkaQrR 5gfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=ezptkkPNLauDTnfn1zjxo48ECBnKEGERFiBhPjJJ5Zs=; b=aoxc0s1tyqEp/wYuF/K3QnxcBQQLxSHZrYXN8byulrCrQ38GGFptGUAoCMqwXsmpIE PfEuPbVflu2wpTXcb7OeZ+E02TeK2tcol7W1+r7Lj7BsGQmGJ1vvqH3XqSHca+wJDiIj 36+3GrHU96hyfNMdKWOc1hZBHowBsYR2W4jRYRQdp4Ibg4AWovhOperZzaD2auyCwwfP B9PkMTy6mR3D0Sx1pYXZ8OcgRNUJl+rI1Xiqg4JbKhQmdxoflTqDUKsKi1XUizSCXE1A GQUriIVcXyqjR+xzTDajpZkdyNuiFU90cZouT1knrBRP+fSXiCq3D7Lt6Z3fppDEXLxJ h3sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j27si1840275ejf.106.2020.08.23.21.47.18; Sun, 23 Aug 2020 21:47:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728051AbgHXDyU (ORCPT + 99 others); Sun, 23 Aug 2020 23:54:20 -0400 Received: from mga07.intel.com ([134.134.136.100]:64622 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728083AbgHXDyT (ORCPT ); Sun, 23 Aug 2020 23:54:19 -0400 IronPort-SDR: Y9fTsTkdclU8y1P9pKIap9+Dqx7vi1dup1ZI21ncB1GdOvFeo6CfaLmzLb1ZATs0nyql8M1yho FG8caJFcCfRw== X-IronPort-AV: E=McAfee;i="6000,8403,9722"; a="220106403" X-IronPort-AV: E=Sophos;i="5.76,347,1592895600"; d="scan'208";a="220106403" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2020 20:54:19 -0700 IronPort-SDR: uBAWpxkAW+8fNMdxbjOnomFUqqhUiKzvTQt8pd1QP2mbTEzgf0bzckcOHudCpcRYpwhluGVjsy oU2X3zySH07Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,347,1592895600"; d="scan'208";a="322017102" Received: from jlpajela-mobl.amr.corp.intel.com (HELO ingas-nuc1.intel.com) ([10.252.134.16]) by fmsmga004.fm.intel.com with ESMTP; 23 Aug 2020 20:54:19 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ 4/4] test/test-mesh: Add "options" to Send/Publish Date: Sun, 23 Aug 2020 20:54:15 -0700 Message-Id: <20200824035415.13420-5-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200824035415.13420-1-inga.stotland@intel.com> References: <20200824035415.13420-1-inga.stotland@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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