#define BLUETOOTH_MESH_NETWORK_TOKEN_STRING_LENGTH 16
#define BLUETOOTH_MESH_APP_UNIQUE_CRED_STRING_LENGTH 50
#define BLUETOOTH_MESH_AUTH_VALUE_LENGTH_MAX 50
+#define BLUETOOTH_MESH_MODEL_MSG_LENGTH_MAX 32
typedef enum {
BLUETOOTH_MESH_NODE_KEY_ADD,
uint16_t vendorid;
uint16_t versionid;
uint16_t crpl;
+ int relay;
+ int frnd;
+ int proxy;
+ int lpn;
} bluetooth_mesh_vendor_info_t;
typedef struct {
typedef struct {
char net_uuid[BLUETOOTH_MESH_NETWORK_UUID_STRING_LENGTH + 1];
+ uint16_t primary_unicast;
+ int elem_index;
+ uint16_t model;
+ uint16_t appkey_idx;
+ uint16_t opcode;
+ uint16_t msg_len;
+ char msg[BLUETOOTH_MESH_MODEL_MSG_LENGTH_MAX + 1];
+} bluetooth_mesh_model_msg_t;
+
+typedef struct {
+ char net_uuid[BLUETOOTH_MESH_NETWORK_UUID_STRING_LENGTH + 1];
bool is_virtual;
uint16_t group_addr;
char label_uuid[BLUETOOTH_MESH_NETWORK_UUID_STRING_LENGTH +1];
} bluetooth_mesh_authentication_request_t;
typedef struct {
+ char net_uuid[BLUETOOTH_MESH_NETWORK_UUID_STRING_LENGTH + 1];
uint16_t primary_unicast;
+ uint16_t num_elements;
char dev_uuid[BLUETOOTH_MESH_NETWORK_UUID_STRING_LENGTH + 1];
} bluetooth_mesh_node_info_t;
bluetooth_mesh_model_t **models,
bluetooth_mesh_network_t *network);
+
+/**
+ * Destroy Local Network Configuration
+ */
+int bluetooth_mesh_network_destroy(bluetooth_mesh_network_t *network);
+
+/**
+ * Unload Local network Configuration
+ */
+int bluetooth_mesh_network_unload(bluetooth_mesh_network_t *network);
+
+/**
+ * Reset a remote Node & remove it from network
+ */
+int bluetooth_mesh_node_reset(bluetooth_mesh_node_info_t *node);
+
/**
* Load already created Network
*/
bluetooth_mesh_model_configure_t *req);
/**
+ * Send message to a model of a node
+ */
+int bluetooth_mesh_model_send_msg(
+ bluetooth_mesh_model_msg_t *req);
+
+/**
* Get all application keys added to a model of a node
*/
int bluetooth_mesh_model_get_all_appkeys(