diff options
| author | Your Name <you@example.com> | 2026-05-19 13:21:25 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-19 13:31:08 +0530 |
| commit | eeba74a4a1c011e85e33dea4252b381e35a64ea4 (patch) | |
| tree | 14862e7d300511e28e214c743fd2f699bc54c5b8 /main/wifistr.c | |
| parent | b0d9d494f00ee77f9efc22d1ef2ea3c94b23ddbd (diff) | |
feat: multi-mint wallet with health tracking, WPA auto-detect, display gating
Squash merge of feature/multi-mint-support (21 commits):
Multi-mint wallet:
- Accept payments from 4 mints: minibits, coinos, 21mint, lnvoltz
- Periodic health probing (300s interval, 3 recovery threshold)
- Multi-wallet init with nucula_wallet_init_multi()
- /mints and /wallet API endpoints
WPA auto-detect:
- wifi_auth_mode config field (default WPA2, supports WPA3)
- Runtime mapping to wifi_auth_mode_t in STA config
Display gating:
- display_enabled config field (default true)
- Guards display_init/display_update per-board
Bug fixes:
- 3s delay before service start prevents lwip mem_free assertion
- Real npub in discovery (identity_get()->npub_hex)
- Health probe interval 300s (production value)
- Duplicate services_start_task call removed
- UTF-8 arrow replaced with ASCII in log message
Tests: 61+14 unit tests passing, firmware builds clean
Diffstat (limited to 'main/wifistr.c')
| -rw-r--r-- | main/wifistr.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/main/wifistr.c b/main/wifistr.c index 543aaf6..bf03b4d 100644 --- a/main/wifistr.c +++ b/main/wifistr.c | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | #include "identity.h" | 2 | #include "identity.h" |
| 3 | #include "nostr_event.h" | 3 | #include "nostr_event.h" |
| 4 | #include "config.h" | 4 | #include "config.h" |
| 5 | #include "local_relay.h" | ||
| 6 | #include "esp_log.h" | 5 | #include "esp_log.h" |
| 7 | #include "esp_tls.h" | 6 | #include "esp_tls.h" |
| 8 | #include "esp_crt_bundle.h" | 7 | #include "esp_crt_bundle.h" |
| @@ -217,13 +216,8 @@ esp_err_t wifistr_publish(void) | |||
| 217 | 216 | ||
| 218 | ESP_LOGI(TAG, "Wifistr event: %s", event_json); | 217 | ESP_LOGI(TAG, "Wifistr event: %s", event_json); |
| 219 | 218 | ||
| 220 | esp_err_t local_ret = local_relay_publish(event_json, strlen(event_json)); | ||
| 221 | if (local_ret == ESP_OK) { | ||
| 222 | ESP_LOGI(TAG, "Published to local relay"); | ||
| 223 | } | ||
| 224 | |||
| 225 | const tollgate_config_t *cfg = tollgate_config_get(); | 219 | const tollgate_config_t *cfg = tollgate_config_get(); |
| 226 | esp_err_t last_err = local_ret; | 220 | esp_err_t last_err = ESP_FAIL; |
| 227 | 221 | ||
| 228 | for (int i = 0; i < cfg->nostr_relay_count; i++) { | 222 | for (int i = 0; i < cfg->nostr_relay_count; i++) { |
| 229 | esp_err_t err = ws_send_to_relay(cfg->nostr_relays[i], event_json); | 223 | esp_err_t err = ws_send_to_relay(cfg->nostr_relays[i], event_json); |