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:
parent
2eda34cf3f
commit
1699d045f8
1 changed files with 3 additions and 2 deletions
|
@ -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),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue