mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 06:06:23 +01:00
* Add formatString convenience function * Use String& for wsLog, wsErr and wsSerial * Add tag data parser and parse tag data * Make logLine use String& * Fix issue with formatString * Reuse payloadLength in processTagReturnData * Fix parsing of unsigned/signed inetegers and cleanup * Use c++17 standard * Cleanup logging
20 lines
577 B
C
20 lines
577 B
C
|
|
#include <Arduino.h>
|
|
#include <AsyncTCP.h>
|
|
#include <ESPAsyncWebServer.h>
|
|
|
|
void init_web();
|
|
void doImageUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final);
|
|
void doJsonUpload(AsyncWebServerRequest *request);
|
|
void wsLog(const String &text);
|
|
void wsErr(const String &text);
|
|
void wsSendTaginfo(const uint8_t *mac, uint8_t syncMode);
|
|
void wsSendSysteminfo();
|
|
void wsSendAPitem(struct APlist *apitem);
|
|
void wsSerial(const String &text);
|
|
uint8_t wsClientCount();
|
|
|
|
extern AsyncWebSocket ws;
|
|
|
|
extern SemaphoreHandle_t wsMutex;
|