2023-11-07 01:11:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <ArduinoJson.h>
|
|
|
|
|
|
|
|
#include "esp_websocket_client.h"
|
|
|
|
#include "screen_handler.hpp"
|
|
|
|
|
|
|
|
//using namespace websockets;
|
|
|
|
|
|
|
|
void setupPriceNotify();
|
|
|
|
|
|
|
|
void onWebsocketPriceEvent(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data);
|
|
|
|
void onWebsocketPriceMessage(esp_websocket_event_data_t* event_data);
|
|
|
|
|
2023-11-08 12:18:59 +01:00
|
|
|
unsigned long getPrice();
|
2023-11-10 23:18:14 +01:00
|
|
|
bool isPriceNotifyConnected();
|
|
|
|
void stopPriceNotify();
|