WiFi Provisioning Declarations.
Copyright (c) 2017-2021 Microchip Technology Inc. and its subsidiaries.
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 |
Referenced by ble_prov_process_event(), and ble_prov_start().
#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 |
Referenced by ble_prov_process_event().
#define ble_prov_wifi_con_update wifiprov_wifi_con_update |
#define CREDENTIALS_NOT_VALID 0 |
Referenced by ble_prov_get_credentials().
#define CREDENTIALS_VALID 1 |
Referenced by ble_prov_get_credentials().
#define PROVISION_FAILED 0x20 |
#define PROVISION_NULL 0x00 |
#define PROVISION_SUCCESS 0x10 |
#define WIFI_PROV_IDLE 0xFF |
Referenced by ble_prov_process_event(), and ble_prov_stop().
#define WIFI_PROV_SUCCESS 0x00 |
Referenced by ble_prov_process_event().
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 | ) |