@@ -837,7 +837,7 @@ bool mesh_config_app_key_del(struct mesh_config *cfg, uint16_t net_idx,
}
bool mesh_config_model_binding_add(struct mesh_config *cfg, uint16_t ele_addr,
- bool vendor, uint32_t mod_id,
+ uint32_t mod_id, bool vendor,
uint16_t app_idx)
{
json_object *jnode, *jmodel, *jstring, *jarray = NULL;
@@ -882,7 +882,7 @@ bool mesh_config_model_binding_add(struct mesh_config *cfg, uint16_t ele_addr,
}
bool mesh_config_model_binding_del(struct mesh_config *cfg, uint16_t ele_addr,
- bool vendor, uint32_t mod_id,
+ uint32_t mod_id, bool vendor,
uint16_t app_idx)
{
json_object *jnode, *jmodel, *jarray;
@@ -152,10 +152,10 @@ bool mesh_config_comp_page_add(struct mesh_config *cfg, uint8_t page,
uint8_t *data, uint16_t size);
bool mesh_config_comp_page_mv(struct mesh_config *cfg, uint8_t old, uint8_t nw);
bool mesh_config_model_binding_add(struct mesh_config *cfg, uint16_t ele_addr,
- bool vendor, uint32_t mod_id,
+ uint32_t mod_id, bool vendor,
uint16_t app_idx);
bool mesh_config_model_binding_del(struct mesh_config *cfg, uint16_t ele_addr,
- bool vendor, uint32_t mod_id,
+ uint32_t mod_id, bool vendor,
uint16_t app_idx);
bool mesh_config_model_pub_add(struct mesh_config *cfg, uint16_t ele_addr,
uint32_t mod_id, bool vendor,
@@ -659,7 +659,7 @@ static int update_binding(struct mesh_node *node, uint16_t addr, uint32_t id,
model_unbind_idx(node, ele_idx, mod, app_idx);
if (!mesh_config_model_binding_del(node_config_get(node),
- addr, vendor, id,
+ addr, id, vendor,
app_idx))
return MESH_STATUS_STORAGE_FAIL;
@@ -671,7 +671,7 @@ static int update_binding(struct mesh_node *node, uint16_t addr, uint32_t id,
return MESH_STATUS_INSUFF_RESOURCES;
if (!mesh_config_model_binding_add(node_config_get(node), addr,
- vendor, id, app_idx))
+ id, vendor, app_idx))
return MESH_STATUS_STORAGE_FAIL;
model_bind_idx(node, ele_idx, mod, app_idx);