From 97a31946b4f534390b6e09d2f326cbd54fda5c1a Mon Sep 17 00:00:00 2001 From: dwightmulcahy Date: Fri, 15 Mar 2024 17:59:45 -0500 Subject: [PATCH 1/2] .gitignore for Jetbrains Clion --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index f7eadc5..5db995f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.idea/ .pio .vscode .vs From d0821cf92eb6430f497d812e8a6cf1732c3f7035 Mon Sep 17 00:00:00 2001 From: dwightmulcahy Date: Wed, 10 Apr 2024 18:34:39 -0500 Subject: [PATCH 2/2] added firmware version to mining pool subscribe msg --- src/stratum.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stratum.cpp b/src/stratum.cpp index 00d72a4..a048818 100644 --- a/src/stratum.cpp +++ b/src/stratum.cpp @@ -8,6 +8,7 @@ #include "esp_log.h" #include "lwip/sockets.h" #include "utils.h" +#include "version.h" @@ -54,7 +55,8 @@ bool tx_mining_subscribe(WiFiClient& client, mining_subscribe& mSubscribe) // Subscribe id = 1; //Initialize id messages - sprintf(payload, "{\"id\": %u, \"method\": \"mining.subscribe\", \"params\": [\"NerdMinerV2\"]}\n", id); + + sprintf(payload, "{\"id\": %lu, \"method\": \"mining.subscribe\", \"params\": [\"NerdMinerV2/%s\"]}\n", id, CURRENT_VERSION); Serial.printf("[WORKER] ==> Mining subscribe\n"); Serial.print(" Sending : "); Serial.println(payload);