Microchip® Advanced Software Framework

wifi_prov.h File Reference

WiFi Provisioning Declarations.

Copyright (c) 2017-2021 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include "wifiprov_api.h"
#include "driver/include/m2m_wifi.h"
#include "string.h"

Data Structures

struct  credentials
 

Macros

#define BLE_PROV_STATE_FAILED   0x80
 
#define BLE_PROV_STATE_IDLE   0x00
 
#define BLE_PROV_STATE_IN_PROGRESS   0x01
 
#define BLE_PROV_STATE_SUCCESS   0x04
 
#define ble_prov_wifi_con_update   wifiprov_wifi_con_update
 
#define CREDENTIALS_NOT_VALID   0
 
#define CREDENTIALS_VALID   1
 
#define PROVISION_FAILED   0x20
 
#define PROVISION_NULL   0x00
 
#define PROVISION_SUCCESS   0x10
 
#define WIFI_PROV_IDLE   0xFF
 
#define WIFI_PROV_SUCCESS   0x00
 

Functions

uint8_t ble_prov_get_credentials (credentials *cred)
 
uint8_t ble_prov_get_provision_state (void)
 
void ble_prov_init (uint8_t *localname, at_ble_auth_t lauthtype)
 
void ble_prov_process_event (at_ble_events_t event, void *params)
 
void ble_prov_scan_result (tstrM2mWifiscanResult *pstrScanResult, uint8_t resultsRemaining)
 
uint8_t ble_prov_start (void)
 
void ble_prov_stop (void)
 

#define BLE_PROV_STATE_FAILED   0x80
#define BLE_PROV_STATE_IDLE   0x00

Referenced by ble_prov_init(), and ble_prov_stop().

#define BLE_PROV_STATE_IN_PROGRESS   0x01

Referenced by ble_prov_start().

#define BLE_PROV_STATE_SUCCESS   0x04
#define ble_prov_wifi_con_update   wifiprov_wifi_con_update
#define CREDENTIALS_NOT_VALID   0
#define CREDENTIALS_VALID   1
#define PROVISION_FAILED   0x20
#define PROVISION_NULL   0x00
#define PROVISION_SUCCESS   0x10
#define WIFI_PROV_IDLE   0xFF
#define WIFI_PROV_SUCCESS   0x00

Referenced by ble_prov_process_event().

uint8_t ble_prov_get_provision_state ( void  )

References provision_state.

Referenced by app_ble_wifi_provisioning().