Microchip® Advanced Software Framework

provisioning_app.c File Reference

WiFi Provisioning Implementations.

Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.

#include "provisioning_app.h"

Macros

#define LED_CLEAR   (0)
 
#define LED_FLASHING_FAST   (60)
 
#define LED_FLASHING_MEDIUM   (255)
 
#define LOCAL_STATE_CONNECTED   (0x01)
 
#define LOCAL_STATE_IDLE   (0x02)
 
#define LOCAL_STATE_NOT_CONNECTED   (0x00)
 
#define PROVAPP_PRINTF(...)   do{printf("\n\r$ "); printf(__VA_ARGS__);}while(0)
 
#define PROVAPP_PRINTF_CONT(...)   do{printf(__VA_ARGS__);}while(0)
 

Functions

void ble_app_connected_update (at_ble_handle_t connection_handle)
 
void ble_app_disconnected_update (at_ble_handle_t connection_handle)
 
void ble_app_paired_update (at_ble_handle_t paired_handle)
 
void initialise_provisioning_app (void)
 
static void led_clear (void)
 
static void led_flash (uint32_t interval_ms)
 
static void led_toggle (void)
 
void provision_app_ble_disconnect (void)
 
uint8_t provisioning_app_processing (void)
 
uint8_t retrieve_credentials (credentials *c)
 
void send_scan_result (tstrM2mWifiscanResult *sr, uint8_t remain)
 
static void set_local_state (uint8_t s)
 
at_ble_status_t start_provisioning_app (void)
 
at_ble_status_t wifi_provision_app_credentials_update (credentials *c)
 
at_ble_status_t wifi_provision_app_scanning_handler (void)
 
void wifi_state_update (uint8_t s)
 

Variables

static uint8_t led_state
 
static uint8_t local_state
 
static credentials provisioned_credentials
 
static wifi_provision_scanlist scan_list
 

#define LED_CLEAR   (0)
#define LED_FLASHING_FAST   (60)
#define LED_FLASHING_MEDIUM   (255)
#define LOCAL_STATE_CONNECTED   (0x01)
#define LOCAL_STATE_NOT_CONNECTED   (0x00)
#define PROVAPP_PRINTF (   ...)    do{printf("\n\r$ "); printf(__VA_ARGS__);}while(0)
#define PROVAPP_PRINTF_CONT (   ...)    do{printf(__VA_ARGS__);}while(0)

void ble_app_connected_update ( at_ble_handle_t  connection_handle)
void ble_app_disconnected_update ( at_ble_handle_t  connection_handle)
void ble_app_paired_update ( at_ble_handle_t  paired_handle)
static void led_clear ( void  )
static
static void led_flash ( uint32_t  interval_ms)
static
static void led_toggle ( void  )
static

References port_pin_toggle_output_level().

Referenced by led_flash().

void provision_app_ble_disconnect ( void  )
at_ble_status_t wifi_provision_app_scanning_handler ( void  )
void wifi_state_update ( uint8_t  s)

uint8_t led_state
static
uint8_t local_state
static
credentials provisioned_credentials
static
wifi_provision_scanlist scan_list
static