WiFi Provisioning Implementations.
Copyright (c) 2017-2021 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | CONF_BLE_PIN {1,2,3,4,5,6} |
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) |
static void | init_credentials (void) |
static uint8_t | provision_app_handle_ble_events (void) |
static void | update_credentials (credentials new_creds) |
Variables | |
static struct wifiprov_scanlist_ind | ble_scan_list |
static uint8_t | provision_state = 0 |
static credentials | provisioned_credentials |
static at_ble_wifiprov_complete_ind | wifiprov_complete_ind = {.status = WIFI_PROV_IDLE} |
#define CONF_BLE_PIN {1,2,3,4,5,6} |
Referenced by ble_prov_start().
uint8_t ble_prov_get_credentials | ( | credentials * | cred | ) |
References tstrM2mWifiWepParams::au8WepKey, CREDENTIALS_NOT_VALID, CREDENTIALS_VALID, M2M_INFO, M2M_WIFI_SEC_WEP, M2M_WIFI_WEP_KEY_INDEX_1, MAX_WIPROVTASK_PASS_LENGTH, MAX_WIPROVTASK_SSID_LENGTH, credentials::passphrase, credentials::passphrase_length, credentials::sec_type, credentials::ssid, credentials::ssid_length, tstrM2mWifiWepParams::u8KeyIndx, tstrM2mWifiWepParams::u8KeySz, WEP_104_KEY_STRING_SIZE, and WEP_40_KEY_STRING_SIZE.
uint8_t ble_prov_get_provision_state | ( | void | ) |
References provision_state.
void ble_prov_init | ( | uint8_t * | localname, |
at_ble_auth_t | lauthtype | ||
) |
void ble_prov_process_event | ( | at_ble_events_t | event, |
void * | params | ||
) |
References AT_BLE_WIFIPROV_COMPLETE_IND, AT_BLE_WIFIPROV_SCAN_MODE_CHANGE_IND, BLE_PROV_STATE_FAILED, BLE_PROV_STATE_SUCCESS, ble_scan_list, M2M_INFO, M2M_WIFI_CH_ALL, m2m_wifi_request_scan(), MAX_WIPROVTASK_PASS_LENGTH, MAX_WIPROVTASK_SSID_LENGTH, credentials::passphrase, at_ble_wifiprov_complete_ind::passphrase, credentials::passphrase_length, at_ble_wifiprov_complete_ind::passphrase_length, provision_state, at_ble_wifiprov_scan_mode_change_ind_t::scanmode, credentials::sec_type, at_ble_wifiprov_complete_ind::sec_type, credentials::ssid, at_ble_wifiprov_complete_ind::ssid, credentials::ssid_length, at_ble_wifiprov_complete_ind::ssid_length, at_ble_wifiprov_complete_ind::status, update_credentials(), WIFI_PROV_IDLE, WIFI_PROV_SUCCESS, wifiprov_scan_mode_change_ind_send(), and WIFIPROV_SCANMODE_SCANNING.
void ble_prov_scan_result | ( | tstrM2mWifiscanResult * | pstrScanResult, |
uint8_t | resultsRemaining | ||
) |
References tstrM2mWifiscanResult::au8SSID, ble_scan_list, MAX_WIPROVTASK_AP_NUM, wifiprov_scanlist_ind::num_valid, _scanitem::rssi, tstrM2mWifiscanResult::s8rssi, wifiprov_scanlist_ind::scandetails, _scanitem::sec_type, _scanitem::ssid, tstrM2mWifiscanResult::u8AuthType, and wifiprov_scan_list_ind_send().
uint8_t ble_prov_start | ( | void | ) |
References AT_BLE_SUCCESS, BLE_PROV_STATE_FAILED, BLE_PROV_STATE_IN_PROGRESS, CONF_BLE_PIN, M2M_ERR, M2M_INFO, provision_state, and wifiprov_start().
void ble_prov_stop | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
Referenced by ble_prov_process_event(), and ble_prov_scan_result().
|
static |
Referenced by ble_prov_get_provision_state(), ble_prov_init(), ble_prov_process_event(), ble_prov_start(), and ble_prov_stop().
|
static |
|
static |