mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
31 lines
693 B
C++
31 lines
693 B
C++
#include <Arduino.h>
|
|
|
|
#include "AsyncUDP.h"
|
|
#include "tag_db.h"
|
|
#ifndef defudpcomm
|
|
#define defudpcomm
|
|
|
|
extern Config config;
|
|
|
|
class UDPcomm {
|
|
public:
|
|
UDPcomm();
|
|
~UDPcomm();
|
|
void init();
|
|
void getAPList();
|
|
void netProcessDataReq(struct espAvailDataReq* eadr);
|
|
void netProcessXferComplete(struct espXferComplete* xfc);
|
|
void netProcessXferTimeout(struct espXferComplete* xfc);
|
|
void netSendDataAvail(struct pendingData* pending);
|
|
void netTaginfo(struct TagInfo* taginfoitem);
|
|
|
|
private:
|
|
AsyncUDP udp;
|
|
void processPacket(AsyncUDPPacket packet);
|
|
void writeUdpPacket(uint8_t* buffer, uint16_t len, IPAddress senderIP);
|
|
};
|
|
|
|
#endif
|
|
|
|
void init_udp();
|