2019-01-16 18:04:45 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Gunar Schorcht
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2019-12-16 01:47:44 +01:00
|
|
|
* @ingroup cpu_esp_common_esp_wifi
|
|
|
|
* @ingroup cpu_esp_common_conf
|
2019-01-16 18:04:45 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
2019-12-16 01:47:44 +01:00
|
|
|
* @brief Parameters for the ESP SoCs WiFi netdev interface
|
2019-01-16 18:04:45 +01:00
|
|
|
*
|
|
|
|
* @author Gunar Schorcht <gunar@schorcht.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ESP_WIFI_PARAMS_H
|
|
|
|
#define ESP_WIFI_PARAMS_H
|
|
|
|
|
2019-09-05 13:35:58 +02:00
|
|
|
#if defined(MODULE_ESP_WIFI) || defined(DOXYGEN)
|
2019-01-16 18:04:45 +01:00
|
|
|
|
|
|
|
/**
|
2019-09-05 13:35:58 +02:00
|
|
|
* @name Set default configuration parameters for the ESP WiFi netdev driver
|
2019-01-16 18:04:45 +01:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The size of the stack used for the ESP WIFI netdev driver thread.
|
|
|
|
*/
|
|
|
|
#ifndef ESP_WIFI_STACKSIZE
|
2019-09-05 13:35:58 +02:00
|
|
|
#define ESP_WIFI_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
|
2019-01-16 18:04:45 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The priority of the ESP WiFi netdev driver thread. Should not be changed.
|
|
|
|
*/
|
|
|
|
#ifndef ESP_WIFI_PRIO
|
2019-09-05 13:35:58 +02:00
|
|
|
#define ESP_WIFI_PRIO (GNRC_NETIF_PRIO)
|
2019-01-16 18:04:45 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief SSID of the AP to be used.
|
|
|
|
*/
|
2021-12-16 13:17:03 +01:00
|
|
|
#ifndef ESP_WIFI_SSID
|
2019-09-05 13:35:58 +02:00
|
|
|
#define ESP_WIFI_SSID "RIOT_AP"
|
2019-01-16 18:04:45 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2019-09-05 13:35:58 +02:00
|
|
|
* @brief Passphrase used for the AP as clear text (max. 64 chars).
|
2019-01-16 18:04:45 +01:00
|
|
|
*/
|
2021-12-16 13:17:03 +01:00
|
|
|
#ifndef ESP_WIFI_PASS
|
2019-09-05 13:35:58 +02:00
|
|
|
#define ESP_WIFI_PASS "ThisistheRIOTporttoESP"
|
2019-01-16 18:04:45 +01:00
|
|
|
#endif
|
|
|
|
|
2020-05-22 15:13:14 +02:00
|
|
|
#if defined(MODULE_ESP_WIFI_AP) || defined(DOXYGEN)
|
|
|
|
|
2021-12-16 13:17:03 +01:00
|
|
|
/**
|
|
|
|
* @brief Use dynamic SSID for the SoftAP
|
|
|
|
*
|
|
|
|
* If set to 1, the SSID for the SoftAP is generated dynamically by extending
|
|
|
|
* the defined SSID (`ESP_WIFI_SSID`) with the MAC address of the SoftAP
|
|
|
|
* interface used, e.g.: `RIOT_AP_aabbccddeeff`
|
|
|
|
*/
|
|
|
|
#ifndef ESP_WIFI_SSID_DYNAMIC
|
|
|
|
#define ESP_WIFI_SSID_DYNAMIC 0
|
|
|
|
#endif
|
|
|
|
|
2020-05-22 15:13:14 +02:00
|
|
|
/**
|
|
|
|
* @brief Whether SoftAP SSID should be hidden.
|
|
|
|
*/
|
|
|
|
#ifndef ESP_WIFI_SSID_HIDDEN
|
|
|
|
#define ESP_WIFI_SSID_HIDDEN (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief WiFi SoftAP maximum connections (max. 4).
|
|
|
|
*/
|
|
|
|
#ifndef ESP_WIFI_MAX_CONN
|
|
|
|
#define ESP_WIFI_MAX_CONN (4)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief WiFi SoftAP beacon interval, in milliseconds.
|
|
|
|
*/
|
|
|
|
#ifndef ESP_WIFI_BEACON_INTERVAL
|
|
|
|
#define ESP_WIFI_BEACON_INTERVAL (100)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* defined(ESP_WIFI_AP) || defined(DOXYGEN) */
|
|
|
|
|
2019-09-05 13:35:58 +02:00
|
|
|
/**@}*/
|
|
|
|
|
2019-01-16 18:04:45 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* MODULE_ESP_WIFI || DOXYGEN */
|
|
|
|
|
|
|
|
#endif /* ESP_WIFI_PARAMS_H */
|
|
|
|
/**@}*/
|