File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
components/esp_wifi_remote Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,23 @@ endchoice
30
30
help
31
31
Pin number of UART RX.
32
32
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
+
33
50
config ESP_WIFI_REMOTE_EPPP_SERVER_CA
34
51
string "Servers CA certificate"
35
52
default "--- Please copy content of the CA certificate ---"
Original file line number Diff line number Diff line change @@ -16,5 +16,7 @@ __attribute__((weak)) esp_netif_t *wifi_remote_eppp_init(eppp_type_t role)
16
16
config .transport = EPPP_TRANSPORT_UART ;
17
17
config .uart .tx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_TX_PIN ;
18
18
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 ;
19
21
return eppp_open (role , & config , portMAX_DELAY );
20
22
}
You can’t perform that action at this time.
0 commit comments