I have a Qt Application that has an Integration of the C++/WinRT-Library so i can use WiFi-Direct (I used the Microsoft UWP WiFi-Direct sample for comparison). The goal is to connect the Application to my WiFi-Direct Device and establish a Socket Connection.
This all works fine. I can discover my device and connect to it. The Socket Connection is also no Problem. My Problem is that when i close the Application after my first successfull connection and start it again the connection always fails. I have tried to unpair my device and then pair again but that also doesn't work. The strange thing is that when i restart my PC and try again it works. But after the first disconnect i cannot establish a second connection.
Does anyone now if Windows stores WiFi-Direct Profiles that are deleted after a restart and where? Deleting the device from the Device-Manager didn't help. I also suspected the PnP-Manager to store a profile of my device or something like that but, when i delete the device from the Device-Manager the profile in the PnP-Manager also disappears. I think it could also be possible that the DHCP-Server that offers the IP-address is storing a profile or something similar but i didn't find anything in this regard.