mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-24 09:07:41 +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
39 lines
927 B
C
39 lines
927 B
C
#include <Arduino.h>
|
|
|
|
extern struct espSetChannelPower curChannel;
|
|
|
|
#define AP_STATE_OFFLINE 0
|
|
#define AP_STATE_ONLINE 1
|
|
#define AP_STATE_FLASHING 2
|
|
#define AP_STATE_WAIT_RESET 3
|
|
#define AP_STATE_REQUIRED_POWER_CYCLE 4
|
|
#define AP_STATE_FAILED 5
|
|
#define AP_STATE_COMING_ONLINE 6
|
|
#define AP_STATE_NORADIO 7
|
|
|
|
struct APInfoS {
|
|
bool isOnline = false;
|
|
uint8_t state = AP_STATE_OFFLINE;
|
|
uint8_t type;
|
|
uint16_t version = 0;
|
|
uint8_t channel;
|
|
uint8_t mac[8];
|
|
uint8_t power;
|
|
uint8_t pendingBuffer;
|
|
uint8_t nop;
|
|
};
|
|
|
|
extern struct APInfoS apInfo;
|
|
|
|
void APTask(void* parameter);
|
|
|
|
bool sendCancelPending(struct pendingData* pending);
|
|
bool sendDataAvail(struct pendingData* pending);
|
|
bool sendPing();
|
|
void APEnterEarlyReset();
|
|
bool sendChannelPower(struct espSetChannelPower* scp);
|
|
void rxSerialTask2(void* parameter);
|
|
void APTagReset();
|
|
bool bringAPOnline();
|
|
void setAPstate(bool isOnline, uint8_t state);
|