mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 16:06:54 +01:00
* Start contentmanager cleanup - Make destination constant - Remove unneeded asignments - Improve loops - Move printHeap function into util * Refactor contentmanager::drawNew * Optimize contentManager::replaceVariables * Fix missing const in prepareCancelPending * Refactor drawDate * Refactor drawWeather, drawForecast & getLocation - Generalize http get json function * Add util function for printing largest free block * Reuse weather icons for both drawWeather & drawForecast * Make httpGetJson timeout const * Reafctor more functions * Add few more const * Fix spelling mistake * Add util for debugging streams - Add util for checking if strings are empty or contain null - Fix file and string checks * Remove leftover debug print
21 lines
601 B
C
21 lines
601 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);
|
|
extern void networkProcess(void *parameter);
|
|
void wsLog(String text);
|
|
void wsErr(String text);
|
|
void wsSendTaginfo(const uint8_t *mac, uint8_t syncMode);
|
|
void wsSendSysteminfo();
|
|
void wsSendAPitem(struct APlist *apitem);
|
|
void wsSerial(String text);
|
|
uint8_t wsClientCount();
|
|
|
|
extern AsyncWebSocket ws;
|
|
|
|
extern SemaphoreHandle_t wsMutex;
|