2023-11-07 00:11:12 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <HTTPClient.h>
|
|
|
|
#include <ArduinoJson.h>
|
2023-11-07 20:26:15 +00:00
|
|
|
#include "shared.hpp"
|
2023-11-07 00:11:12 +00:00
|
|
|
|
|
|
|
#include "esp_websocket_client.h"
|
|
|
|
#include "screen_handler.hpp"
|
|
|
|
|
|
|
|
//using namespace websockets;
|
|
|
|
|
|
|
|
void setupBlockNotify();
|
|
|
|
|
|
|
|
void onWebsocketEvent(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data);
|
|
|
|
void onWebsocketMessage(esp_websocket_event_data_t* event_data);
|
|
|
|
|
|
|
|
unsigned long getBlockHeight();
|