Files
OpenEPaperLink/ESP32_AP-Flasher/include/webflasher.h
Nic Limper b4836e81f3 tag flasher / timestamp content / bugfixes (#217)
- added webinterface for tag flasher
- added tcp transport for communicating with tag flasher (OTG USB also still works)
- added content 'timestamp', makes use of preloaded images and buttons on the 2.9" M3
- webinterface is now aware of C6 and flasher capabilities
- AP can run without ieee801.15.4 radio (i.e. flasher only) by shorting FLASHER_AP_TXD and FLASHER_AP_RXD
- added tcp transport option to OEPL-Flasher.py (serial also still works)
- added new environment OpenEPaperLink_Mini_AP_v4
- lots of finetuning and bug fixes
2024-02-04 20:30:52 +01:00

30 lines
636 B
C++

#include <Arduino.h>
#ifdef HAS_EXT_FLASHER
#include "web.h"
#define WEBFLASH_ENABLE_AUTOFLASH 1
#define WEBFLASH_ENABLE_USBFLASHER 2
#define WEBFLASH_FOCUS 3
#define WEBFLASH_BLUR 4
class Logger : public Print {
public:
Logger();
~Logger();
size_t write(uint8_t c) override;
size_t write(const uint8_t* buffer, size_t size) override;
size_t printf(const char* format, ...);
size_t println(const char* text);
private:
};
void webFlasherTask(void* parameter);
void handleWSdata(uint8_t* data, size_t len, AsyncWebSocketClient* client);
void sendDataToClient(const uint8_t* data, size_t len);
#endif