This example demonstrates how to pass the AP credentials to WINC3400 device via BLE.
This application demonstrates how a user can pass the target AP credentials to WINC3400 device via BLE. The user would need to use "Microchip Bluetooth Data" mobile application to pass the AP credentials to WINC3400 after pairing with the mobile.
To download or clone this application from Github, go to the top level of the repository
Path of the application within the repository is apps/wifi_provision_via_ble/firmware .
To build the application, refer to the following table and open the project using its IDE.
Project Name | Description |
---|---|
sam_e54_xpro_winc3400.X | MPLABX project for SAME54 and WINC3400 Xplained pro |
sam_d21_xpro_winc3400.X | MPLABX project for SAMD21 and WINC3400 Xplained pro |
Connect the Debug USB port on the SAMEXXX Xplained Pro board to the computer using a micro USB cable
Build and program the application project using its respective IDE
Open the Terminal application (Ex.:Tera term) on the computer
Connect to the "USB to UART" COM port and configure the serial settings as follows:
Baud : 115200
Data : 8 Bits
Parity : None
Stop : 1 Bit
Flow Control : None
Download the Microchip Bluetooth Data application from App Store and open it.
The WINC3400 device will scan the APs and ready to get paired with Mobile application.
In the Mobile Application, Open the "Ble provisioner" widget.
In the "Ble provisioner" widget, press the "scan" button. It will list the surrounding BLE devices.
The default name given for WINC3400 in the "Wi-Fi provisioning using BLE" application is "Wifi Prov". Click on "Wifi Prov" device.
The next screen will display the scanned AP list.
Select the desired AP from the scan list and provide the required credentials to make Wi-Fi connection.
Press "Provision" button
The mobile application will ask for the password to pair.
The password is stored in the "pincode" variable in the "wifi_prov.c" file.
Enter the password to pair the WINC3400 device with mobile.
The device will connect to the AP and print the IP address obtained.