microsoft / Windows-universal-samples

API samples for the Universal Windows Platform.
MIT License
9.46k stars 7.99k forks source link

Exception in C# WiFi Direct sample when calling PairAsync() #1220

Open apmysore opened 4 years ago

apmysore commented 4 years ago

With one Windows device running as an Advertiser and the other as Connector, device pairing was never successful in 7 attempts. During 3 of those times, pair attempt timed out and the status read “PairAsync failed, Status: Failed”, during the rest of times, pair attempt failed with status “PairAsync failed, Status: RejectedByHandler”.

shuhaoy commented 3 years ago

@oldnewthing I could also reproduce the issue with Wi-Fi Direct sample C# code (latest release version). And I tried the previous v8.0.5 release, the sample works without the issue. Could you help to check it? Thank you.

oldnewthing commented 3 years ago

I've asked the feature team to investigate.

apmysore commented 3 years ago

@shuhaoy, can you point me to the commit hash for v8.0.5?

oldnewthing commented 3 years ago

You can ask git (git log -n1 v8.0.5 or if you like top get your hands dirty, git rev-parse v8.0.5) or you can ask github to show tag v8.0.5.

apmysore commented 3 years ago

Even v8.0.5 didn't work for me. Pair operation still fails. I will wait for the feature team to resolve this ticket.

shuhaoy commented 3 years ago

@apmysore I tested the sample in Windows 10 1909, it may relate to the OS version.

apmysore commented 3 years ago

Can I know the current status of this issue?

oldnewthing commented 3 years ago

I've asked the team to provide an update.

wangf1978 commented 9 months ago

Hit the same issue