btclock_v3/src/lib/price_notify.hpp

17 lines
404 B
C++
Raw Normal View History

2023-11-07 00:11:12 +00: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);
unsigned long getPrice();