.. _sec-ble-provisioning: 

Running BLE Provisioning
========================

**Overview**

The BLE Wi-Fi provisioning example demonstrates how the BLE functionality of the CC35xx can be used to provision it to a Wi-Fi AP of
the user's choice. This works by passing the Wi-Fi AP credentials to the CC35xx via BLE using a phone or a similar device.

The provisioning sequence is shown below where a user scans for BLE devices, connects to the CC35xx BLE peripheral and
passes the Wi-Fi credentials.

.. figure:: resources/11_provisioning_sequence.png
   :align: center
   :scale: 60

   Provisioning Sequence.

**How to run Wi-Fi Provisioning Demo**


#. Flash the Ble Wifi Provisioning example as explained in quick start guide

#. Install a BLE app on your phone or device (`SimpleLink Connect App`_)

#. Launch the example and open up a terminal. The following should appear on the terminal. 

.. figure:: resources/ExampleScreen.png
	:align: center
	:scale: 60

Provisioning Sequence.


#. Connect to the CC35xx BLE device. It is advertised as *cc35xxble*

.. figure:: resources/PhoneScan.png
	:align: center
	:scale: 100


#. Once connected you will see a list of available services. Open the *Wifi Provisioning over BLE* service

.. figure:: resources/Characteristics.png
	:align: center
	:scale: 100


#. Next enter the SSID and Password (if one is needed) into the phone app

.. figure:: resources/SSIDandPass.png
   :align: center
   :scale: 100

   
#. If there was successful WIFI connection the status will change to connected.

.. figure:: resources/connected.png
   :align: center
   :scale: 100
