mirror of
https://github.com/btclock/btclock_v3.git
synced 2024-11-19 05:20:01 +01:00
Finish V2 MsgPack WebSocket API implementation
This commit is contained in:
parent
c276d32807
commit
849e5ce439
2
data
2
data
@ -1 +1 @@
|
|||||||
Subproject commit 2fffb3ef0284b4262ca97a81eb979259186604e5
|
Subproject commit 1fa62ca88dc9cf85109712082e2b0d3916d03323
|
@ -4,6 +4,6 @@ dependencies:
|
|||||||
source:
|
source:
|
||||||
type: idf
|
type: idf
|
||||||
version: 4.4.7
|
version: 4.4.7
|
||||||
manifest_hash: 615d994fdba8799111cf7825a85adb23ca6a2ae02b2335b53fde1188ff862f23
|
manifest_hash: 3117ab97df715ceaa7b9cacfc3cc7071408d26f122740eea130b5286dc5cd988
|
||||||
target: esp32s3
|
target: esp32s3
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
char *wsServer;
|
char *wsServer;
|
||||||
esp_websocket_client_handle_t blockNotifyClient = NULL;
|
esp_websocket_client_handle_t blockNotifyClient = NULL;
|
||||||
uint currentBlockHeight = 840000;
|
uint currentBlockHeight = 860000;
|
||||||
uint blockMedianFee = 1;
|
uint blockMedianFee = 1;
|
||||||
bool blockNotifyInit = false;
|
bool blockNotifyInit = false;
|
||||||
unsigned long int lastBlockUpdate;
|
unsigned long int lastBlockUpdate;
|
||||||
|
@ -8,14 +8,13 @@ TaskHandle_t workerTaskHandle;
|
|||||||
esp_timer_handle_t screenRotateTimer;
|
esp_timer_handle_t screenRotateTimer;
|
||||||
esp_timer_handle_t minuteTimer;
|
esp_timer_handle_t minuteTimer;
|
||||||
|
|
||||||
std::array<std::string, NUM_SCREENS> taskEpdContent = {"", "", "", "",
|
std::array<std::string, NUM_SCREENS> taskEpdContent = {};
|
||||||
"", "", ""};
|
|
||||||
std::string priceString;
|
std::string priceString;
|
||||||
|
|
||||||
#define WORK_QUEUE_SIZE 10
|
#define WORK_QUEUE_SIZE 10
|
||||||
QueueHandle_t workQueue = NULL;
|
QueueHandle_t workQueue = NULL;
|
||||||
|
|
||||||
uint currentScreen;
|
uint currentScreen = SCREEN_BLOCK_HEIGHT;
|
||||||
uint currentCurrency = CURRENCY_USD;
|
uint currentCurrency = CURRENCY_USD;
|
||||||
|
|
||||||
void workerTask(void *pvParameters) {
|
void workerTask(void *pvParameters) {
|
||||||
@ -158,6 +157,8 @@ void setupTasks() {
|
|||||||
&taskScreenRotateTaskHandle);
|
&taskScreenRotateTaskHandle);
|
||||||
|
|
||||||
waitUntilNoneBusy();
|
waitUntilNoneBusy();
|
||||||
|
|
||||||
|
if (findScreenIndexByValue(preferences.getUInt("currentScreen", DEFAULT_CURRENT_SCREEN)) != -1)
|
||||||
setCurrentScreen(preferences.getUInt("currentScreen", DEFAULT_CURRENT_SCREEN));
|
setCurrentScreen(preferences.getUInt("currentScreen", DEFAULT_CURRENT_SCREEN));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user