mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-02 08:58:26 +02:00
main: create define for STRATUM_USERNAME
This commit is contained in:
parent
c1af662d4e
commit
64161f9db2
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 <sys/param.h>
|
||||
#include "freertos/FreeRTOS.h"
|
||||
@ -37,6 +29,9 @@
|
||||
|
||||
#define PORT CONFIG_EXAMPLE_PORT
|
||||
|
||||
#define STRATUM_USERNAME "johnny9.esp"
|
||||
|
||||
|
||||
static const char *TAG = "stratum client";
|
||||
|
||||
TaskHandle_t sysTaskHandle = NULL;
|
||||
@ -111,7 +106,7 @@ static void admin_task(void *pvParameters)
|
||||
break;
|
||||
}
|
||||
|
||||
auth_to_stratum(sock, "johnny9.esp");
|
||||
auth_to_stratum(sock, STRATUM_USERNAME);
|
||||
|
||||
char * extranonce_str;
|
||||
int extranonce_2_len;
|
||||
|
Loading…
x
Reference in New Issue
Block a user