diff options
Diffstat (limited to 'main/config.h')
| -rw-r--r-- | main/config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/config.h b/main/config.h index d26b7ae..dd3fe05 100644 --- a/main/config.h +++ b/main/config.h | |||
| @@ -3,6 +3,8 @@ | |||
| 3 | 3 | ||
| 4 | #include "esp_err.h" | 4 | #include "esp_err.h" |
| 5 | #include "esp_wifi.h" | 5 | #include "esp_wifi.h" |
| 6 | #include "esp_netif.h" | ||
| 7 | #include <stdbool.h> | ||
| 6 | 8 | ||
| 7 | #define TOLLGATE_MAX_WIFI_NETWORKS 5 | 9 | #define TOLLGATE_MAX_WIFI_NETWORKS 5 |
| 8 | #define TOLLGATE_MAX_MINT_URLS 3 | 10 | #define TOLLGATE_MAX_MINT_URLS 3 |
| @@ -25,12 +27,19 @@ typedef struct { | |||
| 25 | uint8_t ap_channel; | 27 | uint8_t ap_channel; |
| 26 | uint8_t ap_max_conn; | 28 | uint8_t ap_max_conn; |
| 27 | 29 | ||
| 30 | esp_ip4_addr_t ap_ip; | ||
| 31 | char ap_ip_str[16]; | ||
| 32 | |||
| 28 | char mint_url[256]; | 33 | char mint_url[256]; |
| 29 | char lnurl_url[256]; | 34 | char lnurl_url[256]; |
| 30 | int price_per_step; | 35 | int price_per_step; |
| 31 | int step_size_ms; | 36 | int step_size_ms; |
| 37 | |||
| 38 | bool unique_derived; | ||
| 32 | } tollgate_config_t; | 39 | } tollgate_config_t; |
| 33 | 40 | ||
| 41 | void tollgate_config_derive_unique(tollgate_config_t *cfg); | ||
| 42 | |||
| 34 | esp_err_t tollgate_config_init(void); | 43 | esp_err_t tollgate_config_init(void); |
| 35 | const tollgate_config_t *tollgate_config_get(void); | 44 | const tollgate_config_t *tollgate_config_get(void); |
| 36 | esp_err_t tollgate_config_get_wifi(wifi_config_t *wifi_config); | 45 | esp_err_t tollgate_config_get_wifi(wifi_config_t *wifi_config); |