I'm working with the PN7160, my setup is as follows:
- Karo QS93 SoM, running Embedded Linux.
- PN7160 NFC controller.
They are connected over I2C.
I have the 'basic' setup working. I'm using the libnfc-nci library, with the nfcDemoApp. I can successfully poll and detect an NFC tag and also I can put it into share mode, so that I can share for example a weblink, so that when I put my phone to the controller, I get a popup to go to that link.
There is one thing I can't get to work, which is storing Wi-Fi credentials into the NFC controller. I tried:
./nfcDemoApp share --type=mime -m "application/vnd.wfa.wsc" -d "<wsc_payload>"
This seems to - kind of - work. When I run this command on the Karo QS93 and tap my phone to the NFC controller with the NXP TagInfo application open, I see that it correctly received my WiFi SSID and Password.
Something else I tried:
./nfcDemoApp share --type=URI -u "wifi:<SSID>?T=WPA2&P=<password>"
This also gives me results in the NXP TagInfo application.
However, what I am trying to achieve, is that when I tap my phone to the NFC controller, I get a prompt on my phone asking if I want to connect to that Wi-Fi network. Is this possible with the PN7160, and if yes am I missing some configuration? Or am I just doing it wrong now?
Any help is appreciated!