mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-09-25 18:00:41 +02:00
main: create define for STRATUM_USERNAME
This commit is contained in:
13
main/miner.c
13
main/miner.c
@@ -1,11 +1,3 @@
|
|||||||
/* BSD Socket API Example
|
|
||||||
|
|
||||||
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, this
|
|
||||||
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
||||||
CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
*/
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
@@ -37,6 +29,9 @@
|
|||||||
|
|
||||||
#define PORT CONFIG_EXAMPLE_PORT
|
#define PORT CONFIG_EXAMPLE_PORT
|
||||||
|
|
||||||
|
#define STRATUM_USERNAME "johnny9.esp"
|
||||||
|
|
||||||
|
|
||||||
static const char *TAG = "stratum client";
|
static const char *TAG = "stratum client";
|
||||||
|
|
||||||
TaskHandle_t sysTaskHandle = NULL;
|
TaskHandle_t sysTaskHandle = NULL;
|
||||||
@@ -111,7 +106,7 @@ static void admin_task(void *pvParameters)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
auth_to_stratum(sock, "johnny9.esp");
|
auth_to_stratum(sock, STRATUM_USERNAME);
|
||||||
|
|
||||||
char * extranonce_str;
|
char * extranonce_str;
|
||||||
int extranonce_2_len;
|
int extranonce_2_len;
|
||||||
|
Reference in New Issue
Block a user