I have a device with a CC3100MOD WiFi-Chip and i want to connect it to a PC or a Smartphone using WiFi-Direct (P2P). The connection already works when i use Push-Button as security type, but i want it so that my device stores a password/pin and the PC/Smartphone has to connect using that password/pin. So i want it like in AP-Mode but for WiFi-Direct.
I already tried setting the secParams.Key in the sl_WlanConnect() function to my desired password/pin in combination with Push-Button/Pin-Keypad/Pin-Display but that all didn't work. I saw at the release notes of the Simple-Link Driver that there is an issue when the password-string is not null-terminated but there is also no problem.
Do you have any suggestions on how i could make this work?
By the way my device has no screen and i tested it with the Microsoft UWP WiFi-Direct Sample and also with my own custom C++/WinRt App.