Bluetooth: Mesh: shell: Use a valid Company ID

The Company ID 0xffff is treated as invalid in some contexts, so use a
valid one. Also, the Health tests require the Health Fault Company ID
to match that found in the Composition Data.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2017-11-22 10:55:22 +02:00 committed by Johan Hedberg
commit 1699d045f8

View file

@ -17,7 +17,8 @@
#include <bluetooth/bluetooth.h>
#include <bluetooth/mesh.h>
#define CID_NVAL 0xffff
#define CID_NVAL 0xffff
#define CID_LOCAL 0x0002
/* Default net, app & dev key values, unless otherwise specified */
static const u8_t default_key[16] = {
@ -110,7 +111,7 @@ static struct bt_mesh_elem elements[] = {
};
static const struct bt_mesh_comp comp = {
.cid = 0xffff,
.cid = CID_LOCAL,
.elem = elements,
.elem_count = ARRAY_SIZE(elements),
};