You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. WiFiProv.ino sketch is added that allows arduino users to do provisioning via SoftAP or BLE. WiFi.beginProvision( ) API is designed for provisioning in Arduino.
2. In WiFiProv.h provisioning class is defined.
3. WiFiProv.cpp contains implementation for provisioning class.
4. README.md file is added which contains detail information for working.
This sketch implements provisioning using various IDF components
4
+
5
+
# Description
6
+
7
+
This example allows Arduino user to choose either BLE or SOFTAP as a mode of transport, over which the provisioning related communication is to take place, between the device (to be provisioned) and the client (owner of the device).
8
+
9
+
## API's introduced for provisioning
10
+
11
+
## WiFi.onEvent()
12
+
13
+
Using this API user can register to recieve WIFI Events and Provisioning Events
* WIFI_PROV_SECURITY_1 - It allows secure communication which consists of secure handshake using key exchange and proof of possession (pop) and encryption/decryption of messages.
37
+
38
+
* WIFI_PROV_SECURITY_0 - It do not provide application level security, it involve simply plain text communication.
39
+
40
+
* scheme_event_handler : specify the handlers according to the mode chosen
41
+
* BLE :
42
+
- WIFI_PROV_SCHEME_BLE_EVENT_HANDLER_FREE_BTDM - This scheme event handler is used when application doesn't need BT and BLE after provisioning is finised
43
+
- WIFI_PROV_SCHEME_BLE_EVENT_HANDLER_FREE_BLE - This scheme event handler is used when application doesn't need BLE to be active after provisioning is finised
44
+
- WIFI_PROV_SCHEME_BLE_EVENT_HANDLER_FREE_BT - This scheme event handler is used when application doesn't need BT to be active after provisioning is finised
45
+
46
+
* SoftAp :
47
+
- WIFI_PROV_EVENT_HANDLER_NONE
48
+
49
+
* pop : It is the string that is used to provide the authentication while provisioning
50
+
51
+
* service_name : Specify service name for the device while provisioning, if it is not specified then default chosen name via SoftAP is WIFI_XXX and for BLE service it is BLE_XXX where XXX is the last 3 bytes of the MAC address.
52
+
53
+
* service_key : Specify service key while provisioning, if chosen mode of provisioning is BLE then service_key is always NULL
54
+
55
+
* uuid : user can specify there own 128 bit UUID while provisioning using BLE, if not specified then default value taken is
0 commit comments