WIFI DIrect API pair always failed

zheng cheng 1 Reputation point
2024-08-12T03:40:12.68+00:00

Hi Everyone,

My app need use WIFI Direct feature, so I refer to a Microsoft sample Code (WiFiDirectLegacyAPDemo).

For some reason, I can't use legacy mode of WIFI Direct, so I need call customer pair when got a connection request, but it always get a DevicePairingResultStatus_Failed.

This is code: https://1drv.ms/u/s!AvrPdsDWcn8akMEN-iBLhtILwLF-RA?e=g4mRHJ

Use this test app, you start a WIFI direct access point in one notebook, and connect it in another notebook:

cap1

cap2

Best Regards

ZC

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,653 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,898 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.