Microchip® Advanced Software Framework

wifi_scan.c File Reference

wifi_scan Service

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

#include "wifi_scan.h"

Data Structures

struct  ap_details_t
 

Macros

#define APDETAILS_MAX_LEN   (36)
 

Functions

void init_wifi_scan_service (wifiscan_gatt_service_handler_t *wifiscan_handle)
 wifi_scan service initialization More...
 
uint8_t wifiscan_char_change_scanmode (at_ble_characteristic_changed_t *p, wifiscan_gatt_service_handler_t *wifiscan_handle)
 scan mode characteristics change More...
 
at_ble_status_t wifiscan_primary_service_define (wifiscan_gatt_service_handler_t *wifiscan_primary_service)
 wifi_scan service definition More...
 
void wifiscan_print_char (wifiscan_gatt_service_handler_t *wifiscan_handler)
 utility function to retrieve and print out characteristics (scanmode and ap_num) More...
 
at_ble_status_t wifiscan_scanlist_receive (wifiscan_gatt_service_handler_t *wifiscan_serv, wifi_provision_scanlist *param, uint8_t *num_ap_found)
 scan list receive from application More...
 
at_ble_status_t wifiscan_update_scanmode_char_value (wifiscan_gatt_service_handler_t *wifiscan_serv, uint8_t char_data)
 application update of scan mode characteristics value More...
 

Variables

static ap_details_t apdetails [WIFI_PROVISION_MAX_AP_NUM]
 
at_ble_connected_t ble_connected_dev_info [MAX_DEVICE_CONNECTED]
 information of the connected devices More...
 
static uint8_t init_ap_count =0
 Initial value of ap count characteristic value. More...
 
static uint8_t init_ap_details =0
 Initial value of ap details characteristic value. More...
 
static uint8_t init_scan_mode =0
 Initial value of scan mode characteristic value. More...
 
static uint8_t num_ap
 
static uint8_t scan_mode
 
static const
at_ble_char_presentation_t 
wifiscan_char_pres_fmt_struct
 
static const
at_ble_char_presentation_t 
wifiscan_char_pres_fmt_uint8
 

#define APDETAILS_MAX_LEN   (36)

Referenced by init_wifi_scan_service().

at_ble_connected_t ble_connected_dev_info[MAX_DEVICE_CONNECTED]

information of the connected devices

uint8_t init_ap_count =0
static

Initial value of ap count characteristic value.

Referenced by init_wifi_scan_service().

uint8_t init_ap_details =0
static

Initial value of ap details characteristic value.

Referenced by init_wifi_scan_service().

uint8_t init_scan_mode =0
static

Initial value of scan mode characteristic value.

Referenced by init_wifi_scan_service().

uint8_t num_ap
static
uint8_t scan_mode
static
const at_ble_char_presentation_t wifiscan_char_pres_fmt_struct
static
Initial value:
=
{
.unit = 0x2700,
.description = 0,
.format = 0x1b,
.exponent = 0,
.name_space = 0x01
}

Referenced by init_wifi_scan_service().

const at_ble_char_presentation_t wifiscan_char_pres_fmt_uint8
static
Initial value:
=
{
.unit = 0x2700,
.description = 0,
.format = 0x04,
.exponent = 0,
.name_space = 0x01
}

Referenced by init_wifi_scan_service().