upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/main/wifistr.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/wifistr.c')
-rw-r--r--main/wifistr.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/wifistr.c b/main/wifistr.c
index bf03b4d..543aaf6 100644
--- a/main/wifistr.c
+++ b/main/wifistr.c
@@ -2,6 +2,7 @@
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"
5#include "esp_log.h" 6#include "esp_log.h"
6#include "esp_tls.h" 7#include "esp_tls.h"
7#include "esp_crt_bundle.h" 8#include "esp_crt_bundle.h"
@@ -216,8 +217,13 @@ esp_err_t wifistr_publish(void)
216 217
217 ESP_LOGI(TAG, "Wifistr event: %s", event_json); 218 ESP_LOGI(TAG, "Wifistr event: %s", event_json);
218 219
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
219 const tollgate_config_t *cfg = tollgate_config_get(); 225 const tollgate_config_t *cfg = tollgate_config_get();
220 esp_err_t last_err = ESP_FAIL; 226 esp_err_t last_err = local_ret;
221 227
222 for (int i = 0; i < cfg->nostr_relay_count; i++) { 228 for (int i = 0; i < cfg->nostr_relay_count; i++) {
223 esp_err_t err = ws_send_to_relay(cfg->nostr_relays[i], event_json); 229 esp_err_t err = ws_send_to_relay(cfg->nostr_relays[i], event_json);