main: create define for STRATUM_USERNAME

This commit is contained in:
johnny9 2023-05-04 20:11:17 -04:00
parent c1af662d4e
commit 64161f9db2

View File

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