Skip to content

Commit

Permalink
Merge pull request #579 from david-cermak/fix/wifi_remote_netif_examp…
Browse files Browse the repository at this point in the history
…le_sta

[wifi-remote]: Pass more netif options to eppp
  • Loading branch information
david-cermak authored May 28, 2024
2 parents 39dfe26 + 28c0e0b commit f1bc070
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/esp_wifi_remote/.cz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ commitizen:
bump_message: 'bump(wifi_remote): $current_version -> $new_version'
pre_bump_hooks: python ../../ci/changelog.py esp_wifi_remote
tag_format: wifi_remote-v$version
version: 0.2.1
version: 0.2.2
version_files:
- idf_component.yml
7 changes: 7 additions & 0 deletions components/esp_wifi_remote/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.2.2](https://github.com/espressif/esp-protocols/commits/wifi_remote-v0.2.2)

### Bug Fixes

- Added more netif options for eppp connection ([24ce867](https://github.com/espressif/esp-protocols/commit/24ce867))
- 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))

## [0.2.1](https://github.com/espressif/esp-protocols/commits/wifi_remote-v0.2.1)

### Bug Fixes
Expand Down
17 changes: 17 additions & 0 deletions components/esp_wifi_remote/Kconfig.rpc.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,23 @@ endchoice
help
Pin number of UART RX.

config ESP_WIFI_REMOTE_EPPP_NETIF_PRIORITY
int "Routing priority of eppp netif"
default 100
range 0 256
help
Set the priority of the wifi-remote netif.
The bigger the number the higher the priority.
The interface which is up and with the highest priority will act as a default GW.

config ESP_WIFI_REMOTE_EPPP_NETIF_DESCRIPTION
string "eppp network interface description"
default "example_netif_sta"
help
Textual description of the wifi remote network interface.
By default it is set to "example_netif_sta" to be used in IDF protocol example
as default wifi station substitution.

config ESP_WIFI_REMOTE_EPPP_SERVER_CA
string "Servers CA certificate"
default "--- Please copy content of the CA certificate ---"
Expand Down
2 changes: 2 additions & 0 deletions components/esp_wifi_remote/eppp/eppp_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ __attribute__((weak)) esp_netif_t *wifi_remote_eppp_init(eppp_type_t role)
config.transport = EPPP_TRANSPORT_UART;
config.uart.tx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_TX_PIN;
config.uart.rx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_RX_PIN;
config.ppp.netif_description = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_DESCRIPTION;
config.ppp.netif_prio = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_PRIORITY;
return eppp_open(role, &config, portMAX_DELAY);
}
2 changes: 1 addition & 1 deletion components/esp_wifi_remote/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.2.1
version: 0.2.2
url: https://github.com/espressif/esp-protocols/tree/master/components/esp_wifi_remote
description: Utility wrapper for esp_wifi functionality on remote targets
dependencies:
Expand Down

0 comments on commit f1bc070

Please sign in to comment.