Commit 6760b9e6 authored by Emil Gydesen's avatar Emil Gydesen Committed by Alberto Escolar
Browse files

Tests: Bluetooth: Add delay between IAS client write operations



Since there is no way for the client to read or get notified about
the state, we insert a delay between each operation to allow the
server to handle the alerts before getting a new alert request.

Signed-off-by: default avatarEmil Gydesen <emil.gydesen@nordicsemi.no>
parent 29eec51d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -124,9 +124,15 @@ static void test_main(void)

	WAIT_FOR_FLAG(g_service_discovered);

	/* Set alert levels with a delay to let the server handle any changes it want */
	test_alert_high(g_conn);
	k_sleep(K_SECONDS(1));

	test_alert_mild(g_conn);
	k_sleep(K_SECONDS(1));

	test_alert_stop(g_conn);
	k_sleep(K_SECONDS(1));

	PASS("IAS client PASS\n");
}