Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
e83a8679
Commit
e83a8679
authored
6 years ago
by
Gunar Schorcht
Committed by
Schorcht
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cpu/esp32: cleanup esp_wifi config parameters
parent
c0d4706b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cpu/esp32/esp-wifi/esp_wifi_netdev.c
+7
-25
7 additions, 25 deletions
cpu/esp32/esp-wifi/esp_wifi_netdev.c
cpu/esp32/esp-wifi/esp_wifi_params.h
+23
-4
23 additions, 4 deletions
cpu/esp32/esp-wifi/esp_wifi_params.h
with
30 additions
and
29 deletions
cpu/esp32/esp-wifi/esp_wifi_netdev.c
+
7
−
25
View file @
e83a8679
...
@@ -168,34 +168,16 @@ static esp_err_t IRAM_ATTR _esp_system_event_handler(void *ctx, system_event_t *
...
@@ -168,34 +168,16 @@ static esp_err_t IRAM_ATTR _esp_system_event_handler(void *ctx, system_event_t *
return
ESP_OK
;
return
ESP_OK
;
}
}
/** TODO better place
* Default WiFi configuration, overwrite them with your configs
*/
#ifndef CONFIG_WIFI_STA_SSID
#define CONFIG_WIFI_STA_SSID "RIOT_AP"
#endif
#ifndef CONFIG_WIFI_STA_PASSWORD
#define CONFIG_WIFI_STA_PASSWORD "ThisistheRIOTporttoESP"
#endif
#ifndef CONFIG_WIFI_STA_CHANNEL
#define CONFIG_WIFI_STA_CHANNEL 0
#endif
#define CONFIG_WIFI_STA_SCAN_METHOD WIFI_ALL_CHANNEL_SCAN
#define CONFIG_WIFI_STA_SORT_METHOD WIFI_CONNECT_AP_BY_SIGNAL
#define CONFIG_WIFI_STA_RSSI -127
#define CONFIG_WIFI_STA_AUTHMODE WIFI_AUTH_WPA_WPA2_PSK
/* we use predefined station configuration */
/* we use predefined station configuration */
static
wifi_config_t
wifi_config_sta
=
{
static
wifi_config_t
wifi_config_sta
=
{
.
sta
=
{
.
sta
=
{
.
ssid
=
CONFIG
_WIFI_
STA_
SSID
,
.
ssid
=
ESP
_WIFI_SSID
,
.
password
=
CONFIG_WIFI_STA_PASSWORD
,
.
password
=
ESP_WIFI_PASS
,
.
channel
=
CONFIG_WIFI_STA_CHANNEL
,
.
channel
=
0
,
.
scan_method
=
CONFIG_WIFI_STA_SCAN_METHOD
,
.
scan_method
=
WIFI_ALL_CHANNEL_SCAN
,
.
sort_method
=
CONFIG_WIFI_STA_SORT_METHOD
,
.
sort_method
=
WIFI_CONNECT_AP_BY_SIGNAL
,
.
threshold
.
rssi
=
CONFIG_WIFI_STA_RSSI
,
.
threshold
.
rssi
=
-
127
,
.
threshold
.
authmode
=
CONFIG_WIFI_STA_AUTHMODE
.
threshold
.
authmode
=
WIFI_AUTH_WPA_WPA2_PSK
}
}
};
};
...
...
This diff is collapsed.
Click to expand it.
cpu/esp32/esp-wifi/esp_wifi_params.h
+
23
−
4
View file @
e83a8679
...
@@ -25,14 +25,33 @@
...
@@ -25,14 +25,33 @@
* @name Set default configuration parameters for the ESP WiFi netdev driver
* @name Set default configuration parameters for the ESP WiFi netdev driver
* @{
* @{
*/
*/
/**
* @brief The size of the stack used for the ESP WIFI netdev driver thread.
*/
#ifndef ESP_WIFI_STACKSIZE
#ifndef ESP_WIFI_STACKSIZE
/** The size of the stack used for the ESP WiFi netdev driver thread */
#define ESP_WIFI_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
#define ESP_WIFI_STACKSIZE THREAD_STACKSIZE_DEFAULT
#endif
#endif
/**
* @brief The priority of the ESP WiFi netdev driver thread. Should not be changed.
*/
#ifndef ESP_WIFI_PRIO
#ifndef ESP_WIFI_PRIO
/** The priority of the ESP WiFi netdev driver thread */
#define ESP_WIFI_PRIO (GNRC_NETIF_PRIO)
#define ESP_WIFI_PRIO GNRC_NETIF_PRIO
#endif
/**
* @brief SSID of the AP to be used.
*/
#ifndef ESP_WIFI_SSID
#define ESP_WIFI_SSID "RIOT_AP"
#endif
/**
* @brief Passphrase used for the AP as clear text (max. 64 chars).
*/
#ifndef ESP_WIFI_PASS
#define ESP_WIFI_PASS "ThisistheRIOTporttoESP"
#endif
#endif
/**@}*/
/**@}*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment