2023-11-07 01:11:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
2023-11-08 12:18:59 +01:00
|
|
|
#include <cstring>
|
2023-11-07 01:11:12 +01:00
|
|
|
#include <string>
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <HTTPClient.h>
|
|
|
|
#include <ArduinoJson.h>
|
2023-11-07 21:26:15 +01:00
|
|
|
#include "shared.hpp"
|
2023-11-13 12:27:34 +01:00
|
|
|
#include "esp_timer.h"
|
2023-11-07 01:11:12 +01:00
|
|
|
#include "esp_websocket_client.h"
|
|
|
|
#include "screen_handler.hpp"
|
2023-11-08 12:18:59 +01:00
|
|
|
#include "led_handler.hpp"
|
2023-11-07 01:11:12 +01:00
|
|
|
|
|
|
|
//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);
|
|
|
|
|
2023-11-12 12:38:28 +01:00
|
|
|
void setBlockHeight(uint newBlockHeight);
|
|
|
|
uint getBlockHeight();
|
2023-11-08 12:18:59 +01:00
|
|
|
bool isBlockNotifyConnected();
|
2023-11-10 23:18:14 +01:00
|
|
|
void stopBlockNotify();
|