param_count = 1;
TC_PRT("Input param(%d) (device_uuid)", param_index + 1);
break;
+ case BT_MESH_UNIT_TEST_FUNCTION_NODE_RESET:
+ param_count = 1;
+ TC_PRT("Input param(%d) (Node Handle)", param_index + 1);
+ break;
case BT_MESH_UNIT_TEST_FUNCTION_NODE_GET_FEATURES:
param_count = 1;
TC_PRT("Input param(%d) (Node Handle)", param_index + 1);
break;
}
case BT_MESH_UNIT_TEST_FUNCTION_NODE_RESET: {
- // TODO: need to implement
+ bt_mesh_node_h node_h = 0;
+ if (g_test_param.param_count != 1) {
+ TC_PRT("Set Input parameter first!");
+ break;
+ }
+ node_h = GUINT_TO_POINTER(strtoul(g_test_param.params[0], NULL, 16));
+ ret = bt_mesh_node_reset(node_h);
+ TC_PRT("return %s\n", __bt_get_error_message(ret));
break;
}
case BT_MESH_UNIT_TEST_FUNCTION_NODE_GET_FEATURES: {