Added the option to run an AP from another port

This commit is contained in:
Jelmer
2023-05-07 15:42:49 +02:00
parent 9ccf3ab029
commit cfee590f01
5 changed files with 47 additions and 22 deletions

View File

@@ -5,10 +5,4 @@ bool checkForcedAPFlash();
bool doForcedAPFlash();
bool doAPFlash();
bool doAPUpdate(uint8_t type);
bool doTagFlash();
#define FLASHER_AP_PORT 0
#ifdef OPENEPAPERLINK_PCB
#define FLASHER_EXT_PORT 1
#define FLASHER_ALTRADIO_PORT 2
#endif
bool doTagFlash();

View File

@@ -1,5 +1,11 @@
#include <Arduino.h>
#define FLASHER_AP_PORT 0
#ifdef OPENEPAPERLINK_PCB
#define FLASHER_EXT_PORT 1
#define FLASHER_ALTRADIO_PORT 2
#endif
// how long the we should keep the transfer metadata
#define PENDING_TIMEOUT 24 * 3600
// this determines how long images will be cached;
@@ -7,6 +13,10 @@
// maximum time (in minutes) that a tag is put to sleep if no update is expected.
#define MIN_RESPONSE_TIME 10
// Which port we should use for the AP process
// (useful for testing, can only be FLASHER_AP_PORT for any other board than the OpenEPaperLinkPCB board)
#define AP_PROCESS_PORT FLASHER_AP_PORT
// flasher options
#define CUSTOM_MAC_HDR 0x0000