Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2543057pxa; Mon, 24 Aug 2020 17:59:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKv2RdihK0ywkGL+wLgJAbDANzTOxhcdAq8FMiMdDofw3aXrkzkSL+g5BCQSAJEBv7UjEg X-Received: by 2002:a17:906:b2d7:: with SMTP id cf23mr7979350ejb.113.1598317149712; Mon, 24 Aug 2020 17:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598317149; cv=none; d=google.com; s=arc-20160816; b=bccYonvImMjgd+3vgbXUEZxzTt/N2T1ZtKsu87wBmi3viMZgS8p8Nj/msjVkNiJ+Nx mK4j5oPnATp7sCRUZvbYarWCHlYG+5FMbAwyb9F57d/gIMwj1MY1qSOrDge8QpGOk/Lo +FeVE16wWB45WQSln5j6WVT4wzN8u9Gm2VLgG43IbqvxUugrLEKxBpDQ1V9P23qyJE2N kG+/S+kv9FcjKAg2BgFO78NqibIR/VG32Jx0w13//jKM7JlOz/Q27faBEXR+PscQ5JBJ 0ps/nrg7mrkJQFPsAcqiesNSU7ffPOqdWJojGRfiS/L62Fm7fcXMGSXfplV2aXczlbIk Of2g== 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=MF26vfDBEhl4zTT4HHVGAJGnDVLtDOBZiSU6LFW9LsM=; b=JI9G/IuWA9Vnas1n0IXYmfAFKAusCS//mHlPBQBwVfdB+E9kx+NUnEeRl78P4ReVHP 8NqumFkiYd/bzJ30tx3m7tYY9r8xzumLPpZbo726J7qd8EbKs8SAJ8hVij9bITeoTbwk Gt1jZZ8haN7eKvrFHBTqOEu+ZeUFY8LsoJdJcdwAc/RtD+MIljHZQKysH7WvxZ8L45cy LXuQEBNsFtEHAzTeGStq1BPHVXwVJAREX4qLZaFI6MXanWMTuw8kyP5I2xgQbhG3W30V v5V9vnZs+QpImZhKHvvmUmec7dlzmD2nK4DhRAdbTyvwNgynGowTeREz+Y0T5fTP+wnc N1vw== 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 ds7si11860032ejc.511.2020.08.24.17.58.45; Mon, 24 Aug 2020 17:59:09 -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 S1728352AbgHYAym (ORCPT + 99 others); Mon, 24 Aug 2020 20:54:42 -0400 Received: from mga02.intel.com ([134.134.136.20]:44188 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbgHYAyk (ORCPT ); Mon, 24 Aug 2020 20:54:40 -0400 IronPort-SDR: 8i91yPBQPauaZPMd0NCgsATOme5mhGU++07OIugMn27oiv+i26RgHvanE4+0bNhS/MGXa0Bqb+ 3BLb+5vfHojw== X-IronPort-AV: E=McAfee;i="6000,8403,9723"; a="143797438" X-IronPort-AV: E=Sophos;i="5.76,350,1592895600"; d="scan'208";a="143797438" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2020 17:54:38 -0700 IronPort-SDR: Upinc3hlHcKC9N/G5UQ3dvvVsTgIAxyP1YM92V75+VXVrzCXCbz6b9qM5qrYp/qEx5zx1NHxqA 01PHZqO+4W6Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,350,1592895600"; d="scan'208";a="474141831" Received: from apaharia-mobl.gar.corp.intel.com (HELO ingas-nuc1.intel.com) ([10.255.231.108]) by orsmga005.jf.intel.com with ESMTP; 24 Aug 2020 17:54:37 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ v2 0/4] Mesh send/publish API change Date: Mon, 24 Aug 2020 17:54:31 -0700 Message-Id: <20200825005435.26566-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 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 to eliminate VendorPublish() method. 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 | 57 ++++++++++------- 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, 125 insertions(+), 108 deletions(-) -- 2.26.2