Skip to content

Commit f1bc070

Browse files
authored
Merge pull request #579 from david-cermak/fix/wifi_remote_netif_example_sta
[wifi-remote]: Pass more netif options to eppp
2 parents 39dfe26 + 28c0e0b commit f1bc070

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed

components/esp_wifi_remote/.cz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ commitizen:
33
bump_message: 'bump(wifi_remote): $current_version -> $new_version'
44
pre_bump_hooks: python ../../ci/changelog.py esp_wifi_remote
55
tag_format: wifi_remote-v$version
6-
version: 0.2.1
6+
version: 0.2.2
77
version_files:
88
- idf_component.yml

components/esp_wifi_remote/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.2.2](https://github.com/espressif/esp-protocols/commits/wifi_remote-v0.2.2)
4+
5+
### Bug Fixes
6+
7+
- Added more netif options for eppp connection ([24ce867](https://github.com/espressif/esp-protocols/commit/24ce867))
8+
- Do not restrict EPPP config to RSA keys only ([f05c765](https://github.com/espressif/esp-protocols/commit/f05c765), [#570](https://github.com/espressif/esp-protocols/issues/570))
9+
310
## [0.2.1](https://github.com/espressif/esp-protocols/commits/wifi_remote-v0.2.1)
411

512
### Bug Fixes

components/esp_wifi_remote/Kconfig.rpc.in

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ endchoice
3030
help
3131
Pin number of UART RX.
3232

33+
config ESP_WIFI_REMOTE_EPPP_NETIF_PRIORITY
34+
int "Routing priority of eppp netif"
35+
default 100
36+
range 0 256
37+
help
38+
Set the priority of the wifi-remote netif.
39+
The bigger the number the higher the priority.
40+
The interface which is up and with the highest priority will act as a default GW.
41+
42+
config ESP_WIFI_REMOTE_EPPP_NETIF_DESCRIPTION
43+
string "eppp network interface description"
44+
default "example_netif_sta"
45+
help
46+
Textual description of the wifi remote network interface.
47+
By default it is set to "example_netif_sta" to be used in IDF protocol example
48+
as default wifi station substitution.
49+
3350
config ESP_WIFI_REMOTE_EPPP_SERVER_CA
3451
string "Servers CA certificate"
3552
default "--- Please copy content of the CA certificate ---"

components/esp_wifi_remote/eppp/eppp_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ __attribute__((weak)) esp_netif_t *wifi_remote_eppp_init(eppp_type_t role)
1616
config.transport = EPPP_TRANSPORT_UART;
1717
config.uart.tx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_TX_PIN;
1818
config.uart.rx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_RX_PIN;
19+
config.ppp.netif_description = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_DESCRIPTION;
20+
config.ppp.netif_prio = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_PRIORITY;
1921
return eppp_open(role, &config, portMAX_DELAY);
2022
}

components/esp_wifi_remote/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.2.1
1+
version: 0.2.2
22
url: https://github.com/espressif/esp-protocols/tree/master/components/esp_wifi_remote
33
description: Utility wrapper for esp_wifi functionality on remote targets
44
dependencies:

0 commit comments

Comments
 (0)