mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-22 01:07:19 +01:00
- 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
30 lines
636 B
C++
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 |