|
|
@ -55,6 +55,13 @@ typedef enum AC_ONBOOTURI { |
|
|
|
AC_ONBOOTURI_HOME |
|
|
|
AC_ONBOOTURI_HOME |
|
|
|
} AC_ONBOOTURI_t; |
|
|
|
} AC_ONBOOTURI_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**< Specifier for using built-in OTA */ |
|
|
|
|
|
|
|
typedef enum AC_OTA { |
|
|
|
|
|
|
|
AC_OTA_NONE, |
|
|
|
|
|
|
|
AC_OTA_USE, |
|
|
|
|
|
|
|
AC_OTA_USEAUTH |
|
|
|
|
|
|
|
} AC_OTA_t; |
|
|
|
|
|
|
|
|
|
|
|
/**< An enumerated type of the designated menu items. */ |
|
|
|
/**< An enumerated type of the designated menu items. */ |
|
|
|
typedef enum AC_MENUITEM { |
|
|
|
typedef enum AC_MENUITEM { |
|
|
|
AC_MENUITEM_NONE = 0x0000, |
|
|
|
AC_MENUITEM_NONE = 0x0000, |
|
|
@ -92,10 +99,11 @@ class AutoConnectConfig { |
|
|
|
immediateStart(false), |
|
|
|
immediateStart(false), |
|
|
|
retainPortal(false), |
|
|
|
retainPortal(false), |
|
|
|
portalTimeout(AUTOCONNECT_CAPTIVEPORTAL_TIMEOUT), |
|
|
|
portalTimeout(AUTOCONNECT_CAPTIVEPORTAL_TIMEOUT), |
|
|
|
menuItems(AC_MENUITEM_CONFIGNEW | AC_MENUITEM_OPENSSIDS | AC_MENUITEM_DISCONNECT | AC_MENUITEM_RESET | AC_MENUITEM_HOME), |
|
|
|
menuItems(AC_MENUITEM_CONFIGNEW | AC_MENUITEM_OPENSSIDS | AC_MENUITEM_DISCONNECT | AC_MENUITEM_RESET | AC_MENUITEM_UPDATE | AC_MENUITEM_HOME), |
|
|
|
ticker(false), |
|
|
|
ticker(false), |
|
|
|
tickerPort(AUTOCONNECT_TICKER_PORT), |
|
|
|
tickerPort(AUTOCONNECT_TICKER_PORT), |
|
|
|
tickerOn(LOW), |
|
|
|
tickerOn(LOW), |
|
|
|
|
|
|
|
ota(AC_OTA_NONE), |
|
|
|
hostName(String("")), |
|
|
|
hostName(String("")), |
|
|
|
homeUri(AUTOCONNECT_HOMEURI), |
|
|
|
homeUri(AUTOCONNECT_HOMEURI), |
|
|
|
title(AUTOCONNECT_MENU_TITLE), |
|
|
|
title(AUTOCONNECT_MENU_TITLE), |
|
|
@ -125,11 +133,11 @@ class AutoConnectConfig { |
|
|
|
immediateStart(false), |
|
|
|
immediateStart(false), |
|
|
|
retainPortal(false), |
|
|
|
retainPortal(false), |
|
|
|
portalTimeout(portalTimeout), |
|
|
|
portalTimeout(portalTimeout), |
|
|
|
menuItems(AC_MENUITEM_CONFIGNEW | AC_MENUITEM_OPENSSIDS | AC_MENUITEM_DISCONNECT | AC_MENUITEM_RESET | AC_MENUITEM_HOME), |
|
|
|
menuItems(AC_MENUITEM_CONFIGNEW | AC_MENUITEM_OPENSSIDS | AC_MENUITEM_DISCONNECT | AC_MENUITEM_RESET | AC_MENUITEM_UPDATE | AC_MENUITEM_HOME), |
|
|
|
ticker(false), |
|
|
|
ticker(false), |
|
|
|
tickerPort(AUTOCONNECT_TICKER_PORT), |
|
|
|
tickerPort(AUTOCONNECT_TICKER_PORT), |
|
|
|
tickerOn(LOW), |
|
|
|
tickerOn(LOW), |
|
|
|
ota(false), |
|
|
|
ota(AC_OTA_NONE), |
|
|
|
hostName(String("")), |
|
|
|
hostName(String("")), |
|
|
|
homeUri(AUTOCONNECT_HOMEURI), |
|
|
|
homeUri(AUTOCONNECT_HOMEURI), |
|
|
|
title(AUTOCONNECT_MENU_TITLE), |
|
|
|
title(AUTOCONNECT_MENU_TITLE), |
|
|
@ -196,7 +204,7 @@ class AutoConnectConfig { |
|
|
|
bool ticker; /**< Drives LED flicker according to WiFi connection status. */ |
|
|
|
bool ticker; /**< Drives LED flicker according to WiFi connection status. */ |
|
|
|
uint8_t tickerPort; /**< GPIO for flicker */ |
|
|
|
uint8_t tickerPort; /**< GPIO for flicker */ |
|
|
|
uint8_t tickerOn; /**< A signal for flicker turn on */ |
|
|
|
uint8_t tickerOn; /**< A signal for flicker turn on */ |
|
|
|
bool ota; /**< Attach built-in OTA */ |
|
|
|
AC_OTA_t ota; /**< Attach built-in OTA */ |
|
|
|
String hostName; /**< host name */ |
|
|
|
String hostName; /**< host name */ |
|
|
|
String homeUri; /**< A URI of user site */ |
|
|
|
String homeUri; /**< A URI of user site */ |
|
|
|
String title; /**< Menu title */ |
|
|
|
String title; /**< Menu title */ |
|
|
|