How to share wifi configuration in a NDEF?

I have this app: WiShareNet - an ionic HotSpot with QRcode

I’m looking to add NFC along with the QRcode, any idea how to share wifi configuration in a NDEF ?
using https://ionicframework.com/docs/native/nfc/ of course.

1 Like

So, when I bump my Android phone to your Android phone, yours sends some data via NFC so I can connect to your Wifi?

Awesome.

(No idea how to do that though)

Exaclty,

I did it using qrcode ( by encoding this format “WIFI:T:WPA;S:[ssid];P:[password];H:false;” via an angular dependency) , so any qrcode reader recognize it as a wifi configuration and connect to.

I want to do the same using NFC , the connection between the devices works perfect, but i need to know how to “encode” wifi config in the message so the peered device connect to nativly … thats my question.

Would it be useful to write real Wifi-data to a NFC tag and read the raw values using this app?
–> https://play.google.com/store/apps/details?id=at.mroland.android.apps.nfctaginfo&hl=nl

If you understand the structure that the tag has, it might be possible to implement the same in the ionic app.

2 Likes

Just wanted to post the exact same suggestion, just with this app:


This can also write Wifi stuff on a NFC tag I found out after my last post :wink:

1 Like

thanks, this may help,
but depend what nfc-plugin can do.

https://ionicframework.com/docs/native/nfc/#write
and
https://ionicframework.com/docs/native/nfc/#share
look similar enough that they probably do the same thing.