test/bluetooth/tester: Use Health Client Unack API

Unacknowledged API is now separate from Ack.

Signed-off-by: Michał Narajowski <michal.narajowski@codecoup.pl>
This commit is contained in:
Michał Narajowski 2021-12-08 16:16:29 +01:00 committed by Carles Cufí
commit da1663ed3b

View file

@ -2177,9 +2177,7 @@ static void health_fault_clear(uint8_t *data, uint16_t len)
cmd->cid, &test_id, faults, cmd->cid, &test_id, faults,
&fault_count); &fault_count);
} else { } else {
err = bt_mesh_health_fault_clear(cmd->address, cmd->app_idx, err = bt_mesh_health_fault_clear_unack(cmd->address, cmd->app_idx, cmd->cid);
cmd->cid, NULL, faults,
&fault_count);
} }
if (err) { if (err) {
@ -2219,9 +2217,8 @@ static void health_fault_test(uint8_t *data, uint16_t len)
cid, test_id, faults, cid, test_id, faults,
&fault_count); &fault_count);
} else { } else {
err = bt_mesh_health_fault_test(cmd->address, cmd->app_idx, err = bt_mesh_health_fault_test_unack(cmd->address, cmd->app_idx,
cid, test_id, NULL, cid, test_id);
&fault_count);
} }
if (err) { if (err) {
@ -2279,8 +2276,7 @@ static void health_period_set(uint8_t *data, uint16_t len)
err = bt_mesh_health_period_set(cmd->address, cmd->app_idx, err = bt_mesh_health_period_set(cmd->address, cmd->app_idx,
cmd->divisor, &updated_divisor); cmd->divisor, &updated_divisor);
} else { } else {
err = bt_mesh_health_period_set(cmd->address, cmd->app_idx, err = bt_mesh_health_period_set_unack(cmd->address, cmd->app_idx, cmd->divisor);
cmd->divisor, NULL);
} }
if (err) { if (err) {
@ -2336,8 +2332,8 @@ static void health_attention_set(uint8_t *data, uint16_t len)
cmd->attention, cmd->attention,
&updated_attention); &updated_attention);
} else { } else {
err = bt_mesh_health_attention_set(cmd->address, cmd->app_idx, err = bt_mesh_health_attention_set_unack(cmd->address, cmd->app_idx,
cmd->attention, NULL); cmd->attention);
} }
if (err) { if (err) {