Microchip® Advanced Software Framework

wifi_prov.c File Reference

WiFi Provisioning Implementations.

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

#include <asf.h>
#include "at_ble_api.h"
#include "wifi_prov.h"

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_provision_state ( void  )

References provision_state.

Referenced by app_ble_wifi_provisioning().

static uint8_t provision_app_handle_ble_events ( void  )
static

struct wifiprov_scanlist_ind ble_scan_list
static
credentials provisioned_credentials
static
at_ble_wifiprov_complete_ind wifiprov_complete_ind = {.status = WIFI_PROV_IDLE}
static