Microchip® Advanced Software Framework

winc3400/provision_ap_with_ble_on_chip_profile/main21.c File Reference

Provision AP with BLE example.

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

#include <asf.h>
#include "common/include/nm_common.h"
#include "driver/include/m2m_wifi.h"
#include "driver/include/m2m_periph.h"
#include "main21.h"
#include "m2m_ble.h"
#include "at_ble_api.h"
#include "wifi_prov.h"
#include "utils/ble_utils.h"

Macros

#define APP_STATE_COMPLETED   4
 
#define APP_STATE_IDLE   0
 
#define APP_STATE_PROVISIONING   2
 
#define APP_STATE_WAITING_FOR_WIFI_CONNECTION   3
 
#define APP_STATE_WAITING_FOR_WIFI_DISCONNECTION   1
 
#define HEX2ASCII(x)   (((x)>=10)? (((x)-10)+'A') : ((x)+'0'))
 
#define STRING_HEADER
 

Functions

static
at_ble_event_parameter_t
gu8BleParam 
__aligned (4)
 
static void app_ble_wifi_provisioning (void)
 
static void app_wifi_handle_event (uint8 u8MsgType, void *pvMsg)
 
static void app_wifi_init (tpfAppWifiCb wifi_cb_func)
 
int main (void)
 
static void timer_cb (void)
 

Variables

static uint8 gu8ScanIndex
 
static volatile uint8 gu8WiFiConnectionState = M2M_WIFI_UNDEF
 

#define APP_STATE_COMPLETED   4
#define APP_STATE_IDLE   0
#define APP_STATE_PROVISIONING   2
#define APP_STATE_WAITING_FOR_WIFI_CONNECTION   3
#define APP_STATE_WAITING_FOR_WIFI_DISCONNECTION   1
#define HEX2ASCII (   x)    (((x)>=10)? (((x)-10)+'A') : ((x)+'0'))

Referenced by app_wifi_init().

#define STRING_HEADER
Value:
"-- Wifi BLE Provisioning demo --\r\n" \
"-- "BOARD_NAME" --\r\n" \
"-- Compiled: "__DATE__" "__TIME__" --\r\n"
#define BOARD_NAME
Definition: app_init.h:140

Referenced by main().

static at_ble_event_parameter_t gu8BleParam __aligned ( )
static
static void timer_cb ( void  )
static

uint8 gu8ScanIndex
static

Referenced by app_wifi_handle_event().

volatile uint8 gu8WiFiConnectionState = M2M_WIFI_UNDEF
static