mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
ble_mesh: Move dev_role to the end of model_pub
This commit is contained in:
@ -380,11 +380,11 @@ typedef struct {
|
|||||||
/** Callback used to update publish message. Initialized by the stack. */
|
/** Callback used to update publish message. Initialized by the stack. */
|
||||||
esp_ble_mesh_cb_t update;
|
esp_ble_mesh_cb_t update;
|
||||||
|
|
||||||
/** Role of the device that is going to publish messages */
|
|
||||||
uint8_t dev_role;
|
|
||||||
|
|
||||||
/** Publish Period Timer. Initialized by the stack. */
|
/** Publish Period Timer. Initialized by the stack. */
|
||||||
struct k_delayed_work timer;
|
struct k_delayed_work timer;
|
||||||
|
|
||||||
|
/** Role of the device that is going to publish messages */
|
||||||
|
uint8_t dev_role;
|
||||||
} esp_ble_mesh_model_pub_t;
|
} esp_ble_mesh_model_pub_t;
|
||||||
|
|
||||||
/** @def ESP_BLE_MESH_MODEL_PUB_DEFINE
|
/** @def ESP_BLE_MESH_MODEL_PUB_DEFINE
|
||||||
|
@ -369,11 +369,11 @@ struct bt_mesh_model_pub {
|
|||||||
*/
|
*/
|
||||||
int (*update)(struct bt_mesh_model *mod);
|
int (*update)(struct bt_mesh_model *mod);
|
||||||
|
|
||||||
/* Change by Espressif, role of the device going to publish messages */
|
|
||||||
u8_t dev_role;
|
|
||||||
|
|
||||||
/** Publish Period Timer. Only for stack-internal use. */
|
/** Publish Period Timer. Only for stack-internal use. */
|
||||||
struct k_delayed_work timer;
|
struct k_delayed_work timer;
|
||||||
|
|
||||||
|
/* Change by Espressif, role of the device going to publish messages */
|
||||||
|
u8_t dev_role;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @def BLE_MESH_MODEL_PUB_DEFINE
|
/** @def BLE_MESH_MODEL_PUB_DEFINE
|
||||||
|
Reference in New Issue
Block a user