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);