Microchip® Advanced Software Framework

wifi_scan.h File Reference

wifi_scan service declarations

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

#include "asf.h"
#include "ble_manager.h"
#include "wifi_provisioning.h"

Data Structures

struct  gatt_wifiscan_char_handler
 
struct  wifiscan_gatt_service_handler
 

Macros

#define CHAR_USER_STR_WIFISCAN_APCOUNT   ("AP Count")
 
#define CHAR_USER_STR_WIFISCAN_APCOUNT_LEN   (8)
 WIFISCAN APCOUNT NAME_LEN the length of the device name. More...
 
#define CHAR_USER_STR_WIFISCAN_APDETAILS   ("AP Details")
 
#define CHAR_USER_STR_WIFISCAN_APDETAILS_LEN   (10)
 WIFISCAN APDETAILS NAME_LEN the length of the device name. More...
 
#define CHAR_USER_STR_WIFISCAN_SCANMODE   ("WiFi Scanning Mode")
 
#define CHAR_USER_STR_WIFISCAN_SCANMODE_LEN   (18)
 WIFISCAN SCANMODE NAME_LEN the length of the device name. More...
 
#define FAILED_WIFISCAN_CHANGE_PARAM   (0xee)
 
#define INVALID_WIFISCAN_CHANGE_PARAM   (0xff)
 results of wifiscan characteristics write More...
 
#define VALID_WIFISCAN_CHANGE_PARAM   (0xdd)
 
#define WIFISCAN_BASIC_CHARACTERISTIC   (2)
 the two basic characteristics are scan mode and apcount More...
 
#define WIFISCAN_CHARACTERISTIC_COUNT   (WIFISCAN_BASIC_CHARACTERISTIC+WIFI_PROVISION_MAX_AP_NUM)
 count of characteristics in wifi_scan service More...
 
#define WIFISCAN_INCLUDED_SERVICE_COUNT   (0)
 count of included service in wifi_scan service More...
 
#define WIFISCAN_UUID_128_LEN   (16)
 WIFISCAN_UUID_LEN the size of WIFISCAN service uuid. More...
 

Typedefs

typedef struct
gatt_wifiscan_char_handler 
gatt_wifiscan_char_handler_t
 
typedef struct
wifiscan_gatt_service_handler 
wifiscan_gatt_service_handler_t
 

Functions

void init_wifi_scan_service (wifiscan_gatt_service_handler_t *wifiscan_handle)
 Initialize the wifi_scan service with default values. More...
 
uint8_t wifiscan_char_change_scanmode (at_ble_characteristic_changed_t *p, wifiscan_gatt_service_handler_t *wifiscan_handle)
 wifiscan service scan mode characteristics change More...
 
at_ble_status_t wifiscan_primary_service_define (wifiscan_gatt_service_handler_t *wifiscan_primary_service)
 Defining the wifi_scan service to the attribute data base. 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)
 update wifiscan scan list More...
 
at_ble_status_t wifiscan_update_scanmode_char_value (wifiscan_gatt_service_handler_t *wifiscan_serv, uint8_t char_data)
 update wifiscan scan mode More...