From a6f461b7bb9830ceddb9e5274444b3787375c0be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Narajowski?= Date: Thu, 18 Jan 2018 17:11:30 +0100 Subject: [PATCH] mesh: shell: Add dummy vendor model for PTS testing This is required to pass MESH/NODE/CFG/MAKL/BI-04-C. X-Original-Commit: bf1c017e025600531588af02f3e374f3cc551f8f --- nimble/host/mesh/src/shell.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nimble/host/mesh/src/shell.c b/nimble/host/mesh/src/shell.c index 6c41c698c..66cdea83c 100644 --- a/nimble/host/mesh/src/shell.c +++ b/nimble/host/mesh/src/shell.c @@ -31,6 +31,9 @@ #define CID_NVAL 0xffff #define CID_LOCAL 0x0002 +/* Vendor Model data */ +#define VND_MODEL_ID_1 0x1234 + /* Default net, app & dev key values, unless otherwise specified */ static const u8_t default_key[16] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, @@ -202,8 +205,13 @@ static struct bt_mesh_model root_models[] = { BT_MESH_MODEL_HEALTH_CLI(&health_cli), }; +static struct bt_mesh_model vnd_models[] = { + BT_MESH_MODEL_VND(CID_LOCAL, VND_MODEL_ID_1, BT_MESH_MODEL_NO_OPS, NULL, + NULL), +}; + static struct bt_mesh_elem elements[] = { - BT_MESH_ELEM(0, root_models, BT_MESH_MODEL_NONE), + BT_MESH_ELEM(0, root_models, vnd_models), }; static const struct bt_mesh_comp comp = {