upleb.uk

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

summaryrefslogtreecommitdiff
path: root/main/tollgate_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/tollgate_client.h')
-rw-r--r--main/tollgate_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/tollgate_client.h b/main/tollgate_client.h
index 2055e52..ccee624 100644
--- a/main/tollgate_client.h
+++ b/main/tollgate_client.h
@@ -17,6 +17,7 @@ typedef enum {
17 TG_CLIENT_PAYING, 17 TG_CLIENT_PAYING,
18 TG_CLIENT_PAID, 18 TG_CLIENT_PAID,
19 TG_CLIENT_RENEWING, 19 TG_CLIENT_RENEWING,
20 TG_CLIENT_MINING,
20 TG_CLIENT_ERROR 21 TG_CLIENT_ERROR
21} tollgate_client_state_t; 22} tollgate_client_state_t;
22 23
@@ -26,6 +27,8 @@ typedef struct {
26 int step_size_ms; 27 int step_size_ms;
27 char mint_url[TG_CLIENT_MAX_MINT_URL]; 28 char mint_url[TG_CLIENT_MAX_MINT_URL];
28 char metric[TG_CLIENT_MAX_METRIC]; 29 char metric[TG_CLIENT_MAX_METRIC];
30 bool mining_available;
31 uint16_t mining_port;
29} tollgate_discovery_t; 32} tollgate_discovery_t;
30 33
31esp_err_t tollgate_client_init(void); 34esp_err_t tollgate_client_init(void);