Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp262258pxa; Wed, 26 Aug 2020 09:55:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHb26GVzefMmkxRemJO4N/zL86IxpiktgG20j7rKlYdnovAfFj9KHtw1VoyNZBNmeLxFm4 X-Received: by 2002:aa7:d54d:: with SMTP id u13mr16333897edr.356.1598460916785; Wed, 26 Aug 2020 09:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598460916; cv=none; d=google.com; s=arc-20160816; b=qV2IHDjnnTlAaz8celUcqvz0G9r0Hch9tYk21D+KGJnylYe8lN+WiYUJ4c4FpA/Bqg Y8S9gx6cSKT1/KJm4fb3+6Vx1kuOHWNlFSnwsjgFbJ6CNb28CHujkCzwqCnicIpXsmU/ 95Yup7DK7NdWJ2tx7KwRGaJy+AXnZv3GK2wg1iRDOA88CY66QLIkIju4s7JgcuyIOMtL fq1iJm22sXUgw5lJ2uDrX8DB/WUH/FlTsVi0RUtxDZ/C/lvUvlF4uWCGS855lSSgkRo5 AJ5BS/zR0tu9dqVZACQhBHX8MyLITYO6KmGiQpl+aYFA6j7wFyeYwM13W/zvqOsq3xhr Kq5w== 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 :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=zxaYpn0L+d6MuTtPCBZfEqSumAnUAreJmFkVgnWotok=; b=J+BnJiCFfVf+q/KK8OetLaSuQV9vb1zi45PtLg+z2zR3j8Zp+yVhBw8m4k6eX2itqR nibQ1g4UgLxDu8w8ivkwci5/s4tw9QNamFed3Q5OtYBjzNGthiz/CY7ShrynT6GKwars WBj8+CYj/QgVF/WAvaYTfPVjcBTOOeBTTr7SG9nGhAahRM/b6aHEOPnYrTOu+/0NO8YE 03SY/Dc0qLYPGrbESD7xyNSig0337kzBMS5nhwdykF+kCpizMT8mUD4tlpKa3IB3RCmK 7sChcOehXTYL8FOH4aK0JWa3nJycsEEaNvZVP0PhQiztV45W0/fRHxh+A780JJiwi3n0 M7/g== 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 c20si1812950edx.70.2020.08.26.09.54.29; Wed, 26 Aug 2020 09:55:16 -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 S1726946AbgHZQy2 (ORCPT + 99 others); Wed, 26 Aug 2020 12:54:28 -0400 Received: from mga12.intel.com ([192.55.52.136]:2013 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbgHZQy0 (ORCPT ); Wed, 26 Aug 2020 12:54:26 -0400 IronPort-SDR: MamyRcwKctf+6eGInT8XavSvgBumzLzh43bDyTJMJp8uTvYBDMU4s0mk2ljUj7JN9EYrAtLxo9 qTElNDGJuo5g== X-IronPort-AV: E=McAfee;i="6000,8403,9725"; a="135883619" X-IronPort-AV: E=Sophos;i="5.76,356,1592895600"; d="scan'208";a="135883619" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2020 09:54:26 -0700 IronPort-SDR: 9yfVrKycYdK9RkCf7/FLZ+guBuR617iQNn2z2AuiYlFCuAHn/fxvXtTsQMvuGEL5oQ5hc1mYv8 Xc0b+QMATojg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,356,1592895600"; d="scan'208";a="331851951" Received: from bgi1-mobl2.amr.corp.intel.com ([10.254.63.130]) by fmsmga002.fm.intel.com with ESMTP; 26 Aug 2020 09:54:25 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: inga.stotland@intel.com, brian.gix@intel.com Subject: [PATCH BlueZ v3 0/4] Mesh send/publish API change Date: Wed, 26 Aug 2020 09:54:16 -0700 Message-Id: <20200826165420.563822-1-brian.gix@intel.com> X-Mailer: git-send-email 2.25.4 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 patch set modifies Send, DevKeySend and Publish methods on bluez.mesh.Node interface to include additional argument "options". This new argument is a dictionary that currently has only one new key word defined for Send() and DevKeySend(): "ForceSegmented" - to force small payloads to be sent as one-segment messages Other key words may be defined in future to accommodate evolving requirements of Mesh Profile specification. ********* v2 ************ In case of Publish(), and additional keyword is defined "Vendor" - 16-bit Company ID as defined by the Bluetooth SIG This allows us to eliminate VendorPublish() method. ********* v3 ************ Added Vendor specific clarity to the Publish() method description in mesh-api.txt, since VendorPublish() is removed. Inga Stotland (4): doc/mesh-api: Add "options" dictionary to Send/Publish mesh: Handle "options" dictionary in Send/Publish methods tools/mesh-cfglient: Add "options" to Send/DevKeySend test/test-mesh: Add "options" to Send/Publish doc/mesh-api.txt | 60 ++++++++++-------- mesh/cfgmod-server.c | 2 +- mesh/model.c | 6 +- mesh/model.h | 9 +-- mesh/node.c | 140 ++++++++++++++++++++--------------------- test/test-mesh | 11 +++- tools/mesh-cfgclient.c | 8 +++ 7 files changed, 127 insertions(+), 109 deletions(-) -- 2.25.4