diff --git a/src/stratum.cpp b/src/stratum.cpp index 2deb2e18..8237a44d 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" @@ -55,9 +56,9 @@ bool tx_mining_subscribe(WiFiClient& client, mining_subscribe& mSubscribe) // Subscribe id = 1; //Initialize id messages #ifndef HAN - sprintf(payload, "{\"id\": %u, \"method\": \"mining.subscribe\", \"params\": [\"NerdMinerV2\"]}\n", id); + sprintf(payload, "{\"id\": %u, \"method\": \"mining.subscribe\", \"params\": [\"NerdMinerV2/%s\"]}\n", id, CURRENT_VERSION); #else - sprintf(payload, "{\"id\": %u, \"method\": \"mining.subscribe\", \"params\": [\"HAN_SOLOminer\"]}\n", id); + sprintf(payload, "{\"id\": %u, \"method\": \"mining.subscribe\", \"params\": [\"HAN_SOLOminer/%s\"]}\n", id, CURRENT_VERSION); #endif Serial.printf("[WORKER] ==> Mining subscribe\n");