Using Wifi Direct API in legacy mode disconnects every 2 minutes

  access-point, c++, wifi, wifi-direct, windows

I’ve got a problem with my soft ap solution. When i connect a client to the ap the connection gets established and everything works fine. But I’ve noticed that when i set a ping to the host, it looses connection every 2 minutes and then suddenly regains connection.
This unfortunatly is unnacceptable for my solution.

I found this link: On using the WiFi Direct Api on Windows?
, which describes the same problem, but the answer isn’t clear enough and i would like a code example or a more elaborate explanation.

In my solution, I use this class:
https://docs.microsoft.com/en-us/uwp/api/windows.devices.wifidirect.wifidirectadvertisementpublisher?view=winrt-19041
with legacy settings set to "enabled":
https://docs.microsoft.com/en-us/uwp/api/windows.devices.wifidirect.wifidirectlegacysettings.isenabled?view=winrt-19041

On using the WiFi Direct Api on Windows?

Source: Windows Questions

LEAVE A COMMENT