mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 12:05:51 +01:00
This one saves a lot of flash space. Now, wifimanager is replaced with our own method for managing the wifi connections. Also, the whole thing will run now even if there is no wifi. If wifi disappears, it automatically tries to reconnect in the background every few minutes. Wifi settings now available at all times at /setup If it cannot connect, an access point 'OpenEPaperLink' is created where you can set the wifi credentials (http://192.168.4.1/setup).
21 lines
595 B
C
21 lines
595 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(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;
|