All checks were successful
BTClock CI / build (push) Successful in 12m16s
BTClock CI / merge (map[name:btclock_rev_b version:esp32s3], 213epd) (push) Successful in 31s
BTClock CI / merge (map[name:btclock_v8 version:esp32s3], 213epd) (push) Successful in 21s
BTClock CI / merge (map[name:lolin_s3_mini version:esp32s3], 213epd) (push) Successful in 29s
BTClock CI / merge (map[name:lolin_s3_mini version:esp32s3], 29epd) (push) Successful in 19s
BTClock CI / release (push) Successful in 39s
31 lines
No EOL
829 B
C++
31 lines
No EOL
829 B
C++
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
#include <ArduinoJson.h>
|
|
#include <esp_websocket_client.h>
|
|
#include "block_notify.hpp"
|
|
#include <string>
|
|
|
|
#include "lib/screen_handler.hpp"
|
|
|
|
void setupPriceNotify();
|
|
|
|
void onWebsocketPriceEvent(void *handler_args, esp_event_base_t base,
|
|
int32_t event_id, void *event_data);
|
|
//void onWebsocketPriceEvent(WStype_t type, uint8_t * payload, size_t length);
|
|
|
|
void onWebsocketPriceMessage(esp_websocket_event_data_t *event_data);
|
|
|
|
uint getPrice(char currency);
|
|
void setPrice(uint newPrice, char currency);
|
|
|
|
//void processNewPrice(uint newPrice);
|
|
void processNewPrice(uint newPrice, char currency);
|
|
|
|
bool isPriceNotifyConnected();
|
|
void stopPriceNotify();
|
|
void restartPriceNotify();
|
|
|
|
bool getPriceNotifyInit();
|
|
uint getLastPriceUpdate(char currency);
|
|
void loadStoredPrices(); |