31 #ifndef IOT_BLE_WIFI_PROVISIONING_H_ 32 #define IOT_BLE_WIFI_PROVISIONING_H_ 125 typedef struct IotBleWifiProvResponse
148 bool ( * getRequestType )(
const uint8_t * pMessage,
152 bool ( * deserializeListNetworkRequest )(
const uint8_t * pData,
156 bool ( * deserializeAddNetworkRequest )(
const uint8_t * pData,
160 bool ( * deserializeEditNetworkRequest )(
const uint8_t * pData,
164 bool ( * deserializeDeleteNetworkRequest )(
const uint8_t * pData,
int16_t currentPriorityIndex
Definition: iot_ble_wifi_provisioning.h:89
bool IotBleWifiProv_Stop(void)
Stop the WiFi provisionig process loop function. This enqueues a command to stop the WiFi provisionin...
int16_t index
Definition: iot_ble_wifi_provisioning.h:75
Definition: iot_ble_wifi_provisioning.h:146
Definition: iot_ble_wifi_provisioning.h:44
Defines add wifi network request message structure sent from the provisioining app to the device...
Definition: iot_ble_wifi_provisioning.h:70
bool shouldConnect
Definition: iot_ble_wifi_provisioning.h:78
uint16_t index
Definition: iot_ble_wifi_provisioning.h:115
Definition: iot_ble_wifi_provisioning.h:142
bool IotBleWifiProv_Connect(uint32_t networkIndex)
Connects to one of the saved networks in priority order.
bool isProvisioned
Definition: iot_ble_wifi_provisioning.h:77
Defines the structure used to hold a scanned or saved network information.
Definition: iot_ble_wifi_provisioning.h:108
IotBleWifiProvEvent_t
Events Used by the WIFI provisioning service.
Definition: iot_ble_wifi_provisioning.h:137
Defines delete access point request message structure sent from provisioning app to the device...
Definition: iot_ble_wifi_provisioning.h:99
WIFIScanResult_t * pScannedNetwork
Definition: iot_ble_wifi_provisioning.h:112
Definition: iot_ble_wifi_provisioning.h:140
Definition: iot_ble_wifi_provisioning.h:141
bool IotBleWifiProv_RunProcessLoop(void)
Function which runs the process loop for Wifi provisioning. Process loop can be run within a task...
IotBleWifiProvNetworkInfo_t networkInfo
Definition: iot_ble_wifi_provisioning.h:129
IotBleWiFiProvRequest_t
This enumeration defines the different types of request processed by the WiFi provisioning library...
Definition: iot_ble_wifi_provisioning.h:41
Defines the structure used to hold the wifi provisioning response.
Definition: iot_ble_wifi_provisioning.h:125
bool statusOnly
Definition: iot_ble_wifi_provisioning.h:130
bool isHidden
Definition: iot_ble_wifi_provisioning.h:118
WIFIReturnCode_t status
Definition: iot_ble_wifi_provisioning.h:128
Defines the list wifi networks request message structure sent from the provisioining app to the devic...
Definition: iot_ble_wifi_provisioning.h:56
WIFINetworkProfile_t network
Definition: iot_ble_wifi_provisioning.h:74
int16_t newPriorityIndex
Definition: iot_ble_wifi_provisioning.h:90
Definition: iot_ble_wifi_provisioning.h:45
bool isConnected
Definition: iot_ble_wifi_provisioning.h:117
Definition: iot_ble_wifi_provisioning.h:48
Definition: iot_ble_wifi_provisioning.h:47
bool IotBleWifiProv_Init(void)
Initialize wifi provisioning over BLE service.
uint32_t IotBleWifiProv_GetNumNetworks(void)
Gets the total number of provisioned networks.
Definition: iot_ble_wifi_provisioning.h:46
int16_t scanTimeoutMS
Definition: iot_ble_wifi_provisioning.h:59
IotBleWifiProvSerializer_t * IotBleWifiProv_GetSerializer(void)
Gets the serializer interface used to serialize/deserialize packets over BLE. By default it uses the ...
bool IotBleWifiProv_EraseAllNetworks(void)
Erase all wifi networks.
WIFINetworkProfile_t * pSavedNetwork
Definition: iot_ble_wifi_provisioning.h:113
Definition: iot_ble_wifi_provisioning.h:139
bool isSavedNetwork
Definition: iot_ble_wifi_provisioning.h:116
void IotBleWifiProv_Deinit(void)
Tear down WIFI provisioning service.
int16_t scanSize
Definition: iot_ble_wifi_provisioning.h:58
Defines edit wifi network request message structure sent from provisioning app to the device...
Definition: iot_ble_wifi_provisioning.h:87
Definition: iot_ble_wifi_provisioning.h:43
int16_t priorityIndex
Definition: iot_ble_wifi_provisioning.h:101