added firmware version to mining pool subscribe msg
This commit is contained in:
parent
97a31946b4
commit
d0821cf92e
@ -8,6 +8,7 @@
|
|||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
#include "lwip/sockets.h"
|
#include "lwip/sockets.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -54,7 +55,8 @@ bool tx_mining_subscribe(WiFiClient& client, mining_subscribe& mSubscribe)
|
|||||||
|
|
||||||
// Subscribe
|
// Subscribe
|
||||||
id = 1; //Initialize id messages
|
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.printf("[WORKER] ==> Mining subscribe\n");
|
||||||
Serial.print(" Sending : "); Serial.println(payload);
|
Serial.print(" Sending : "); Serial.println(payload);
|
||||||
|
Loading…
Reference in New Issue
Block a user