diff --git a/examples/MyLabels/mylabels.h b/examples/MyLabels/mylabels.h new file mode 100644 index 0000000..1327d75 --- /dev/null +++ b/examples/MyLabels/mylabels.h @@ -0,0 +1,261 @@ +/** + * The template for the overring the hardcoded strings contained in + * the AutoConnect pages. + * e.g. for PlatformIO, you can add to platformio.ini in your project + * along with AC_LABLES macro which specifies the user-defined label + * constants as follows: + * + * build_flags = + * -DAC_LABELS='"${PROJECT_SRC_DIR}/mylabels.h"' + * + * And places mylabels.h, it needs a structure of the define directive + * provided per label string definition for the change your wants. + * + * #ifdef [ID YOU WANT TO CHANGE] + * #undef [ID YOU WANT TO CHANGE] + * #define [ID YOU WANT TO CHANGE] "NEW_STRING_FOR_THISONE" + * #endif + * + * Details are in the documentation. + * https://hieromon.github.io/AutoConnect/changelabel.html + */ + +// Menu item: Configure new AP +//#ifdef AUTOCONNECT_MENULABEL_CONFIGNEW +//#undef AUTOCONNECT_MENULABEL_CONFIGNEW +//#define AUTOCONNECT_MENULABEL_CONFIGNEW "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_MENULABEL_CONFIGNEW + +// Menu item: Open SSIDs +//#ifdef AUTOCONNECT_MENULABEL_OPENSSIDS +//#undef AUTOCONNECT_MENULABEL_OPENSSIDS +//#define AUTOCONNECT_MENULABEL_OPENSSIDS "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_MENULABEL_OPENSSIDS + +// Menu item: Disconnect +//#ifdef AUTOCONNECT_MENULABEL_DISCONNECT +//#undef AUTOCONNECT_MENULABEL_DISCONNECT +//#define AUTOCONNECT_MENULABEL_DISCONNECT "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_MENULABEL_DISCONNECT + +// Menu item: Reset... +//#ifdef AUTOCONNECT_MENULABEL_RESET +//#undef AUTOCONNECT_MENULABEL_RESET +//#define AUTOCONNECT_MENULABEL_RESET "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_MENULABEL_RESET + +// Menu item: HOME +//#ifdef AUTOCONNECT_MENULABEL_HOME +//#undef AUTOCONNECT_MENULABEL_HOME +//#define AUTOCONNECT_MENULABEL_HOME "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_MENULABEL_HOME + +// Menu item: Update +//#ifdef AUTOCONNECT_MENULABEL_UPDATE +//#undef AUTOCONNECT_MENULABEL_UPDATE +//#define AUTOCONNECT_MENULABEL_UPDATE "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_MENULABEL_UPDATE + +// Button label: RESET +//#ifdef AUTOCONNECT_BUTTONLABEL_RESET +//#undef AUTOCONNECT_BUTTONLABEL_RESET +//#define AUTOCONNECT_BUTTONLABEL_RESET "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_BUTTONLABEL_RESET + +// Page title: Page not found +//#ifdef AUTOCONNECT_PAGETITLE_NOTFOUND +//#undef AUTOCONNECT_PAGETITLE_NOTFOUND +//#define AUTOCONNECT_PAGETITLE_NOTFOUND "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGETITLE_NOTFOUND + +// Page title: AutoConnect resetting +//#ifdef AUTOCONNECT_PAGETITLE_RESETTING +//#undef AUTOCONNECT_PAGETITLE_RESETTING +//#define AUTOCONNECT_PAGETITLE_RESETTING "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGETITLE_RESETTING + +// Page title: AutoConnect statistics +//#ifdef AUTOCONNECT_PAGETITLE_STATISTICS +//#undef AUTOCONNECT_PAGETITLE_STATISTICS +//#define AUTOCONNECT_PAGETITLE_STATISTICS "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGETITLE_STATISTICS + +// Page statistics row: Established connection +//#ifdef AUTOCONNECT_PAGESTATS_ESTABLISHEDCONNECTION +//#undef AUTOCONNECT_PAGESTATS_ESTABLISHEDCONNECTION +//#define AUTOCONNECT_PAGESTATS_ESTABLISHEDCONNECTION "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_ESTABLISHEDCONNECTION + +// Page statistics row: Mode +//#ifdef AUTOCONNECT_PAGESTATS_MODE +//#undef AUTOCONNECT_PAGESTATS_MODE +//#define AUTOCONNECT_PAGESTATS_MODE "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_MODE + +// Page statistics row: IP +//#ifdef AUTOCONNECT_PAGESTATS_IP +//#undef AUTOCONNECT_PAGESTATS_IP +//#define AUTOCONNECT_PAGESTATS_IP "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_IP + +// Page statistics row: GW +//#ifdef AUTOCONNECT_PAGESTATS_GATEWAY +//#undef AUTOCONNECT_PAGESTATS_GATEWAY +//#define AUTOCONNECT_PAGESTATS_GATEWAY "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_GATEWAY + +// Page statistics row: Subnet mask +//#ifdef AUTOCONNECT_PAGESTATS_SUBNETMASK +//#undef AUTOCONNECT_PAGESTATS_SUBNETMASK +//#define AUTOCONNECT_PAGESTATS_SUBNETMASK "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_SUBNETMASK + +// Page statistics row: SoftAP IP +//#ifdef AUTOCONNECT_PAGESTATS_SOFTAPIP +//#undef AUTOCONNECT_PAGESTATS_SOFTAPIP +//#define AUTOCONNECT_PAGESTATS_SOFTAPIP "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_SOFTAPIP + +// Page statistics row: AP MAC +//#ifdef AUTOCONNECT_PAGESTATS_APMAC +//#undef AUTOCONNECT_PAGESTATS_APMAC +//#define AUTOCONNECT_PAGESTATS_APMAC "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_APMAC + +// Page statistics row: STA MAC +//#ifdef AUTOCONNECT_PAGESTATS_STAMAC +//#undef AUTOCONNECT_PAGESTATS_STAMAC +//#define AUTOCONNECT_PAGESTATS_STAMAC "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_STAMAC + +// Page statistics row: Channel +//#ifdef AUTOCONNECT_PAGESTATS_CHANNEL +//#undef AUTOCONNECT_PAGESTATS_CHANNEL +//#define AUTOCONNECT_PAGESTATS_CHANNEL "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_CHANNEL + +// Page statistics row: dBm +//#ifdef AUTOCONNECT_PAGESTATS_DBM +//#undef AUTOCONNECT_PAGESTATS_DBM +//#define AUTOCONNECT_PAGESTATS_DBM "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_DBM + +// Page statistics row: Chip ID +//#ifdef AUTOCONNECT_PAGESTATS_CHIPID +//#undef AUTOCONNECT_PAGESTATS_CHIPID +//#define AUTOCONNECT_PAGESTATS_CHIPID "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_CHIPID + +// Page statistics row: CPU Freq. +//#ifdef AUTOCONNECT_PAGESTATS_CPUFREQ +//#undef AUTOCONNECT_PAGESTATS_CPUFREQ +//#define AUTOCONNECT_PAGESTATS_CPUFREQ "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_CPUFREQ + +// Page statistics row: Flash size +//#ifdef AUTOCONNECT_PAGESTATS_FLASHSIZE +//#undef AUTOCONNECT_PAGESTATS_FLASHSIZE +//#define AUTOCONNECT_PAGESTATS_FLASHSIZE "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_FLASHSIZE + +// Page statistics row: Free memory +//#ifdef AUTOCONNECT_PAGESTATS_FREEMEM +//#undef AUTOCONNECT_PAGESTATS_FREEMEM +//#define AUTOCONNECT_PAGESTATS_FREEMEM "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGESTATS_FREEMEM + +// Page title: AutoConnect config +//#ifdef AUTOCONNECT_PAGETITLE_CONFIG +//#undef AUTOCONNECT_PAGETITLE_CONFIG +//#define AUTOCONNECT_PAGETITLE_CONFIG "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGETITLE_CONFIG + +// Page config text: Total: +//#ifdef AUTOCONNECT_PAGECONFIG_TOTAL +//#undef AUTOCONNECT_PAGECONFIG_TOTAL +//#define AUTOCONNECT_PAGECONFIG_TOTAL "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGECONFIG_TOTAL + +// Page config text: Hidden: +//#ifdef AUTOCONNECT_PAGECONFIG_HIDDEN +//#undef AUTOCONNECT_PAGECONFIG_HIDDEN +//#define AUTOCONNECT_PAGECONFIG_HIDDEN "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGECONFIG_HIDDEN + +// Page config text: SSID +//#ifdef AUTOCONNECT_PAGECONFIG_SSID +//#undef AUTOCONNECT_PAGECONFIG_SSID +//#define AUTOCONNECT_PAGECONFIG_SSID "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGECONFIG_SSID + +// Page config text: Passphrase +//#ifdef AUTOCONNECT_PAGECONFIG_PASSPHRASE +//#undef AUTOCONNECT_PAGECONFIG_PASSPHRASE +//#define AUTOCONNECT_PAGECONFIG_PASSPHRASE "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGECONFIG_PASSPHRASE + +// Page config text: Enable DHCP +//#ifdef AUTOCONNECT_PAGECONFIG_ENABLEDHCP +//#undef AUTOCONNECT_PAGECONFIG_ENABLEDHCP +//#define AUTOCONNECT_PAGECONFIG_ENABLEDHCP "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGECONFIG_ENABLEDHCP + +// Page config text: Apply +//#ifdef AUTOCONNECT_PAGECONFIG_APPLY +//#undef AUTOCONNECT_PAGECONFIG_APPLY +//#define AUTOCONNECT_PAGECONFIG_APPLY "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGECONFIG_APPLY + +// Page title: AutoConnect credentials +//#ifdef AUTOCONNECT_PAGETITLE_CREDENTIALS +//#undef AUTOCONNECT_PAGETITLE_CREDENTIALS +//#define AUTOCONNECT_PAGETITLE_CREDENTIALS "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGETITLE_CREDENTIALS + +// Page title: AutoConnect connecting +//#ifdef AUTOCONNECT_PAGETITLE_CONNECTING +//#undef AUTOCONNECT_PAGETITLE_CONNECTING +//#define AUTOCONNECT_PAGETITLE_CONNECTING "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGETITLE_CONNECTING + +// Page title: AutoConnect connection failed +//#ifdef AUTOCONNECT_PAGETITLE_CONNECTIONFAILED +//#undef AUTOCONNECT_PAGETITLE_CONNECTIONFAILED +//#define AUTOCONNECT_PAGETITLE_CONNECTIONFAILED "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGETITLE_CONNECTIONFAILED + +// Page connection failed: Connection Failed +//#ifdef AUTOCONNECT_PAGECONNECTIONFAILED_CONNECTIONFAILED +//#undef AUTOCONNECT_PAGECONNECTIONFAILED_CONNECTIONFAILED +//#define AUTOCONNECT_PAGECONNECTIONFAILED_CONNECTIONFAILED "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGECONNECTIONFAILED_CONNECTIONFAILED + +// Page title: AutoConnect disconnected +//#ifdef AUTOCONNECT_PAGETITLE_DISCONNECTED +//#undef AUTOCONNECT_PAGETITLE_DISCONNECTED +//#define AUTOCONNECT_PAGETITLE_DISCONNECTED "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_PAGETITLE_DISCONNECTED + +// Text: No saved credentials. +//#ifdef AUTOCONNECT_TEXT_NOSAVEDCREDENTIALS +//#undef AUTOCONNECT_TEXT_NOSAVEDCREDENTIALS +//#define AUTOCONNECT_TEXT_NOSAVEDCREDENTIALS "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_TEXT_NOSAVEDCREDENTIALS + +// Menu Text: Connecting +//#ifdef AUTOCONNECT_MENUTEXT_CONNECTING +//#undef AUTOCONNECT_MENUTEXT_CONNECTING +//#define AUTOCONNECT_MENUTEXT_CONNECTING "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_MENUTEXT_CONNECTING + +// Menu Text: Disconnect +//#ifdef AUTOCONNECT_MENUTEXT_DISCONNECT +//#undef AUTOCONNECT_MENUTEXT_DISCONNECT +//#define AUTOCONNECT_MENUTEXT_DISCONNECT "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_MENUTEXT_DISCONNECT + +// Menu Text: Failed +//#ifdef AUTOCONNECT_MENUTEXT_FAILED +//#undef AUTOCONNECT_MENUTEXT_FAILED +//#define AUTOCONNECT_MENUTEXT_FAILED "NEW_STRING_YOU_WISH" +//#endif // !AUTOCONNECT_MENUTEXT_FAILED