AWS IoT for ESP32 v1.0.0
An ESP-IDF based solution
lib_wifi.h
Go to the documentation of this file.
1/*******************************************************************************
2* Copyright (c) 2021, Buildstorm Pvt Ltd
3*
4* Filename: lib_wifi.h
5*
6* Author: Amruta
7* email: amruta@buildstorm.com
8*
9* Description:
10* Contains wrapper functions to handle WiFi functionalities.
11*******************************************************************************/
12
18#ifndef _LIB_WIFI_H_
19#define _LIB_WIFI_H_
20
21/* Includes ------------------------------------------------------------------*/
22
23#include "lib_config.h"
24#include "stdutils.h"
25
26/* Macros -----------------------------------------------------------------*/
27
28#define ENABLE_WIFI_VERIFICATION TRUE
29
34typedef enum
35{
43
47typedef struct
48{
49 char ssid[LENGTH_WIFI_CRED_SSID];
50 char password[LENGTH_WIFI_CRED_PASSWORD];
52
53/* Function declarations ----------------------------------------------------*/
54
63
70
77
83int8_t WIFI_getRssi();
84
91
103
109uint16_t WIFI_getApList(char *pBuffer);
110
111#endif
Configuration header file.
void WIFI_printStatus()
Print the WiFi status.
const char * WIFI_getStateString()
Get WiFi state as string.
char * WIFI_getIpAddress()
Get the IP address.
bool WIFI_isConnected()
Check if WiFi is connected.
int8_t WIFI_getRssi()
Get WiFi RSSI.
uint16_t WIFI_getApList(char *pBuffer)
Get list of avaialable Access Points (AP)
uint8_t WIFI_getSignalStrength()
Get WiFi signal strength.
wifiStates_et
Definition: lib_wifi.h:35
@ STATE_WIFI_SCAN
Definition: lib_wifi.h:37
@ STATE_WIFI_DISCONNECTED
Definition: lib_wifi.h:39
@ STATE_WIFI_START
Definition: lib_wifi.h:38
@ STATE_WIFI_CONNECTED
Definition: lib_wifi.h:40
@ STATE_WIFI_MAX
Definition: lib_wifi.h:41
@ STATE_WIFI_IDLE
Definition: lib_wifi.h:36
WiFi credentials.
Definition: lib_wifi.h:48