12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808 |
- <!doctype html>
- <html lang="en" class="no-js">
- <head>
-
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1">
-
- <meta name="description" content="ESP8266/ESP32 WLAN configuration at run time with web interface">
-
-
-
- <link rel="canonical" href="https://Hieromon.github.io/AutoConnect/faq.html">
-
-
- <meta name="author" content="Hieromon Ikasamo">
-
- <link rel="shortcut icon" href="assets/images/favicon.png">
- <meta name="generator" content="mkdocs-1.1.2, mkdocs-material-6.1.6">
-
-
-
- <title>FAQ - AutoConnect for ESP8266/ESP32</title>
-
-
-
- <link rel="stylesheet" href="assets/stylesheets/main.6910b76c.min.css">
-
-
- <link rel="stylesheet" href="assets/stylesheets/palette.196e0c26.min.css">
-
-
-
- <meta name="theme-color" content="#4051b5">
-
-
-
-
-
-
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Roboto",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono",SFMono-Regular,Consolas,Menlo,monospace}</style>
-
-
-
-
- <link rel="stylesheet" href="css/paragraph.css">
-
- <link rel="stylesheet" href="css/extra.css">
-
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
-
-
-
-
- <script>window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create","UA-116150854-1","auto"),ga("set","anonymizeIp",!0),ga("send","pageview"),document.addEventListener("DOMContentLoaded",function(){document.forms.search&&document.forms.search.query.addEventListener("blur",function(){if(this.value){var e=document.location.pathname;ga("send","pageview",e+"?q="+this.value)}})}),document.addEventListener("DOMContentSwitch",function(){ga("send","pageview",document.location.pathname)})</script>
- <script async src="https://www.google-analytics.com/analytics.js"></script>
-
-
-
- </head>
-
-
-
-
-
-
-
- <body dir="ltr" data-md-color-scheme="" data-md-color-primary="indigo" data-md-color-accent="indigo">
-
-
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" for="__drawer"></label>
- <div data-md-component="skip">
-
-
- <a href="#after-connected-autoconnect-menu-performs-but-no-happens" class="md-skip">
- Skip to content
- </a>
-
- </div>
- <div data-md-component="announce">
-
- </div>
-
-
- <header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid" aria-label="Header">
- <a href="https://Hieromon.github.io/AutoConnect/" title="AutoConnect for ESP8266/ESP32" class="md-header-nav__button md-logo" aria-label="AutoConnect for ESP8266/ESP32">
-
- <img src="images/arduino-logo.svg" alt="logo">
- </a>
- <label class="md-header-nav__button md-icon" for="__drawer">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
- </label>
- <div class="md-header-nav__title" data-md-component="header-title">
-
- <div class="md-header-nav__ellipsis">
- <span class="md-header-nav__topic md-ellipsis">
- AutoConnect for ESP8266/ESP32
- </span>
- <span class="md-header-nav__topic md-ellipsis">
-
- FAQ
-
- </span>
- </div>
-
- </div>
-
- <label class="md-header-nav__button md-icon" for="__search">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
- </label>
-
- <div class="md-search" data-md-component="search" role="dialog">
- <label class="md-search__overlay" for="__search"></label>
- <div class="md-search__inner" role="search">
- <form class="md-search__form" name="search">
- <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
- <label class="md-search__icon md-icon" for="__search">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
- </label>
- <button type="reset" class="md-search__icon md-icon" aria-label="Clear" data-md-component="search-reset" tabindex="-1">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
- </button>
- </form>
- <div class="md-search__output">
- <div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="search-result">
- <div class="md-search-result__meta">
- Initializing search
- </div>
- <ol class="md-search-result__list"></ol>
- </div>
- </div>
- </div>
- </div>
- </div>
-
-
- <div class="md-header-nav__source">
-
- <a href="https://github.com/Hieromon/AutoConnect" title="Go to repository" class="md-source">
- <div class="md-source__icon md-icon">
-
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.55 236.05L244 40.45a28.87 28.87 0 00-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 01-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 000 40.81l195.61 195.6a28.86 28.86 0 0040.8 0l194.69-194.69a28.86 28.86 0 000-40.81z"/></svg>
- </div>
- <div class="md-source__repository">
- Hieromon/AutoConnect
- </div>
- </a>
- </div>
-
- </nav>
- </header>
-
- <div class="md-container" data-md-component="container">
-
-
-
-
- <main class="md-main" data-md-component="main">
- <div class="md-main__inner md-grid">
-
-
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
- <div class="md-sidebar__scrollwrap">
- <div class="md-sidebar__inner">
-
- <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
- <label class="md-nav__title" for="__drawer">
- <a href="https://Hieromon.github.io/AutoConnect/" title="AutoConnect for ESP8266/ESP32" class="md-nav__button md-logo" aria-label="AutoConnect for ESP8266/ESP32">
-
- <img src="images/arduino-logo.svg" alt="logo">
- </a>
- AutoConnect for ESP8266/ESP32
- </label>
-
- <div class="md-nav__source">
-
- <a href="https://github.com/Hieromon/AutoConnect" title="Go to repository" class="md-source">
- <div class="md-source__icon md-icon">
-
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.55 236.05L244 40.45a28.87 28.87 0 00-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 01-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 000 40.81l195.61 195.6a28.86 28.86 0 0040.8 0l194.69-194.69a28.86 28.86 0 000-40.81z"/></svg>
- </div>
- <div class="md-source__repository">
- Hieromon/AutoConnect
- </div>
- </a>
- </div>
-
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="index.html" class="md-nav__link">
- Overview
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="gettingstarted.html" class="md-nav__link">
- Getting started
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="menu.html" class="md-nav__link">
- AutoConnect menu
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="basicusage.html" class="md-nav__link">
- Basic usage
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-nav__toggle md-toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" >
- <label class="md-nav__link" for="nav-5">
- Advanced usage
- <span class="md-nav__icon md-icon"></span>
- </label>
- <nav class="md-nav" aria-label="Advanced usage" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
- <span class="md-nav__icon md-icon"></span>
- Advanced usage
- </label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
-
- <li class="md-nav__item">
- <a href="advancedusage.html" class="md-nav__link">
- Advanced usage
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="adconnection.html" class="md-nav__link">
- AutoConnect WiFi connection control
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="adcpcontrol.html" class="md-nav__link">
- Captive portal control
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="adnetwork.html" class="md-nav__link">
- Settings and controls for network and WiFi
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="adauthentication.html" class="md-nav__link">
- Authentication settings
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="adcredential.html" class="md-nav__link">
- Credential accesses
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="adexterior.html" class="md-nav__link">
- Customizing page appearance
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="adothers.html" class="md-nav__link">
- Other operation settings and controls
- </a>
- </li>
-
- </ul>
- </nav>
- </li>
-
-
-
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-nav__toggle md-toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" >
- <label class="md-nav__link" for="nav-6">
- Custom Web pages
- <span class="md-nav__icon md-icon"></span>
- </label>
- <nav class="md-nav" aria-label="Custom Web pages" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
- <span class="md-nav__icon md-icon"></span>
- Custom Web pages
- </label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
-
- <li class="md-nav__item">
- <a href="acintro.html" class="md-nav__link">
- Custom Web pages with AutoConnect
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="acelements.html" class="md-nav__link">
- AutoConnectElements
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="acjson.html" class="md-nav__link">
- Custom Web pages with JSON
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="achandling.html" class="md-nav__link">
- Handling the custom Web pages
- </a>
- </li>
-
- </ul>
- </nav>
- </li>
-
-
-
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-nav__toggle md-toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7" >
- <label class="md-nav__link" for="nav-7">
- OTA Updates
- <span class="md-nav__icon md-icon"></span>
- </label>
- <nav class="md-nav" aria-label="OTA Updates" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
- <span class="md-nav__icon md-icon"></span>
- OTA Updates
- </label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
-
- <li class="md-nav__item">
- <a href="otaupdate.html" class="md-nav__link">
- OTA Updates
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="otabrowser.html" class="md-nav__link">
- Using Web Browser
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="otaserver.html" class="md-nav__link">
- Using Update Server
- </a>
- </li>
-
- </ul>
- </nav>
- </li>
-
-
-
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-nav__toggle md-toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" >
- <label class="md-nav__link" for="nav-8">
- Library APIs
- <span class="md-nav__icon md-icon"></span>
- </label>
- <nav class="md-nav" aria-label="Library APIs" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
- <span class="md-nav__icon md-icon"></span>
- Library APIs
- </label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
-
- <li class="md-nav__item">
- <a href="api.html" class="md-nav__link">
- AutoConnect API
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="apiaux.html" class="md-nav__link">
- AutoConnectAux API
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="apiconfig.html" class="md-nav__link">
- AutoConnectConfig API
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="apielements.html" class="md-nav__link">
- AutoConnectElements API
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="apiupdate.html" class="md-nav__link">
- AutoConnectUpdate API
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="apiextra.html" class="md-nav__link">
- Something extra
- </a>
- </li>
-
- </ul>
- </nav>
- </li>
-
-
-
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-nav__toggle md-toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9" >
- <label class="md-nav__link" for="nav-9">
- Examples
- <span class="md-nav__icon md-icon"></span>
- </label>
- <nav class="md-nav" aria-label="Examples" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
- <span class="md-nav__icon md-icon"></span>
- Examples
- </label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
-
- <li class="md-nav__item">
- <a href="howtoembed.html" class="md-nav__link">
- How to embed
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="datatips.html" class="md-nav__link">
- Tips for data conversion
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="menuize.html" class="md-nav__link">
- Attach the menus
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="wojson.html" class="md-nav__link">
- Custom Web pages w/o JSON
- </a>
- </li>
-
- </ul>
- </nav>
- </li>
-
-
-
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-nav__toggle md-toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10" >
- <label class="md-nav__link" for="nav-10">
- Appendix
- <span class="md-nav__icon md-icon"></span>
- </label>
- <nav class="md-nav" aria-label="Appendix" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
- <span class="md-nav__icon md-icon"></span>
- Appendix
- </label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
-
- <li class="md-nav__item">
- <a href="lsbegin.html" class="md-nav__link">
- Inside AutoConnect::begin
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="credit.html" class="md-nav__link">
- Saved credentials access
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="acupload.html" class="md-nav__link">
- File upload handler
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="colorized.html" class="md-nav__link">
- Custom colorized
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="changelabel.html" class="md-nav__link">
- Change label text
- </a>
- </li>
-
- </ul>
- </nav>
- </li>
-
-
-
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
- FAQ
- <span class="md-nav__icon md-icon"></span>
- </label>
-
- <a href="faq.html" class="md-nav__link md-nav__link--active">
- FAQ
- </a>
-
-
- <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-
-
-
- <label class="md-nav__title" for="__toc">
- <span class="md-nav__icon md-icon"></span>
- Table of contents
- </label>
- <ul class="md-nav__list" data-md-scrollfix>
-
- <li class="md-nav__item">
- <a href="#after-connected-autoconnect-menu-performs-but-no-happens" class="md-nav__link">
- After connected, AutoConnect menu performs but no happens.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#after-updating-to-autoconnect-v100-established-aps-disappear-from-open-ssids-with-esp32" class="md-nav__link">
- After updating to AutoConnect v1.0.0, established APs disappear from Open SSIDs with ESP32.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#an-esp8266ap-as-softap-was-connected-but-captive-portal-does-not-start" class="md-nav__link">
- An esp8266ap as SoftAP was connected but Captive portal does not start.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#cannot-automatically-reconnect-to-a-wifi-hotspot" class="md-nav__link">
- Cannot automatically reconnect to a WiFi Hotspot
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#captive-portal-does-not-pop-up" class="md-nav__link">
- Captive portal does not pop up.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#compile-error-that-eeprom-was-not-declared-in-this-scope" class="md-nav__link">
- Compile error that 'EEPROM' was not declared in this scope
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#compile-error-that-esphttpupdate-was-not-declared-in-this-scope" class="md-nav__link">
- Compile error that 'ESPhttpUpdate' was not declared in this scope
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#connection-lost-immediately-after-establishment-with-ap" class="md-nav__link">
- Connection lost immediately after establishment with AP
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#data-saved-to-eeprom-is-different-from-my-sketch-wrote" class="md-nav__link">
- Data saved to EEPROM is different from my sketch wrote.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#does-not-appear-esp8266ap-in-smartphone" class="md-nav__link">
- Does not appear esp8266ap in smartphone.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#does-not-response-from-_ac" class="md-nav__link">
- Does not response from /_ac.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#hang-up-after-reset" class="md-nav__link">
- Hang up after Reset?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-can-i-detect-the-captive-portal-starting" class="md-nav__link">
- How can I detect the captive portal starting?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-change-http-port" class="md-nav__link">
- How change HTTP port?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-change-ssid-or-password-in-captive-portal" class="md-nav__link">
- How change SSID or Password in Captive portal?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-do-i-detach-the-ardunojson" class="md-nav__link">
- How do I detach the ArdunoJson?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-place-html-elements-undefined-in-autoconnectelements" class="md-nav__link">
- How place HTML elements undefined in AutoConnectElements?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-erase-the-credentials-saved-in-eeprom" class="md-nav__link">
- How erase the credentials saved in EEPROM?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-locate-the-link-button-to-the-autoconnect-menu" class="md-nav__link">
- How locate the link button to the AutoConnect menu?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-much-memory-does-autoconnect-consume" class="md-nav__link">
- How much memory does AutoConnect consume?
- </a>
-
- <nav class="md-nav" aria-label=" How much memory does AutoConnect consume?">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#sketch-size" class="md-nav__link">
- Sketch size
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#heap-size" class="md-nav__link">
- Heap size
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#i-cannot-complete-to-wi-fi-login-from-smartphone" class="md-nav__link">
- I cannot complete to Wi-Fi login from smartphone.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#i-cannot-see-the-custom-web-page" class="md-nav__link">
- I cannot see the custom Web page.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#saved-credentials-are-wrong-or-lost" class="md-nav__link">
- Saved credentials are wrong or lost.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#some-autoconnect-page-is-cut-off" class="md-nav__link">
- Some AutoConnect page is cut off.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#submit-element-in-a-custom-web-page-does-not-react" class="md-nav__link">
- Submit element in a custom Web page does not react.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#unable-to-change-any-macro-definitions-by-the-sketch" class="md-nav__link">
- Unable to change any macro definitions by the Sketch.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#unauthorize-error-without-prompting-the-login-dialog" class="md-nav__link">
- Unauthorize error without prompting the login dialog.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#still-not-stable-with-my-sketch" class="md-nav__link">
- Still, not stable with my sketch.
- </a>
-
- <nav class="md-nav" aria-label=" Still, not stable with my sketch.">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#1-change-wifi-channel" class="md-nav__link">
- 1. Change WiFi channel
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#2-change-the-arduino-core-version" class="md-nav__link">
- 2. Change the arduino core version
- </a>
-
- <nav class="md-nav" aria-label="2. Change the arduino core version">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#with-esp8266-arduino-core" class="md-nav__link">
- with ESP8266 arduino core
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#with-esp32-arduino-core" class="md-nav__link">
- with ESP32 arduino core
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#3-turn-on-the-debug-log-options" class="md-nav__link">
- 3. Turn on the debug log options
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#4-reports-the-issue-to-autoconnect-github-repository" class="md-nav__link">
- 4. Reports the issue to AutoConnect Github repository
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- </ul>
-
- </nav>
-
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="changelog.html" class="md-nav__link">
- Change log
- </a>
- </li>
-
-
-
-
- <li class="md-nav__item">
- <a href="license.html" class="md-nav__link">
- License
- </a>
- </li>
-
- </ul>
- </nav>
- </div>
- </div>
- </div>
-
-
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
- <div class="md-sidebar__scrollwrap">
- <div class="md-sidebar__inner">
-
- <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-
-
-
- <label class="md-nav__title" for="__toc">
- <span class="md-nav__icon md-icon"></span>
- Table of contents
- </label>
- <ul class="md-nav__list" data-md-scrollfix>
-
- <li class="md-nav__item">
- <a href="#after-connected-autoconnect-menu-performs-but-no-happens" class="md-nav__link">
- After connected, AutoConnect menu performs but no happens.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#after-updating-to-autoconnect-v100-established-aps-disappear-from-open-ssids-with-esp32" class="md-nav__link">
- After updating to AutoConnect v1.0.0, established APs disappear from Open SSIDs with ESP32.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#an-esp8266ap-as-softap-was-connected-but-captive-portal-does-not-start" class="md-nav__link">
- An esp8266ap as SoftAP was connected but Captive portal does not start.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#cannot-automatically-reconnect-to-a-wifi-hotspot" class="md-nav__link">
- Cannot automatically reconnect to a WiFi Hotspot
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#captive-portal-does-not-pop-up" class="md-nav__link">
- Captive portal does not pop up.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#compile-error-that-eeprom-was-not-declared-in-this-scope" class="md-nav__link">
- Compile error that 'EEPROM' was not declared in this scope
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#compile-error-that-esphttpupdate-was-not-declared-in-this-scope" class="md-nav__link">
- Compile error that 'ESPhttpUpdate' was not declared in this scope
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#connection-lost-immediately-after-establishment-with-ap" class="md-nav__link">
- Connection lost immediately after establishment with AP
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#data-saved-to-eeprom-is-different-from-my-sketch-wrote" class="md-nav__link">
- Data saved to EEPROM is different from my sketch wrote.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#does-not-appear-esp8266ap-in-smartphone" class="md-nav__link">
- Does not appear esp8266ap in smartphone.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#does-not-response-from-_ac" class="md-nav__link">
- Does not response from /_ac.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#hang-up-after-reset" class="md-nav__link">
- Hang up after Reset?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-can-i-detect-the-captive-portal-starting" class="md-nav__link">
- How can I detect the captive portal starting?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-change-http-port" class="md-nav__link">
- How change HTTP port?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-change-ssid-or-password-in-captive-portal" class="md-nav__link">
- How change SSID or Password in Captive portal?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-do-i-detach-the-ardunojson" class="md-nav__link">
- How do I detach the ArdunoJson?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-place-html-elements-undefined-in-autoconnectelements" class="md-nav__link">
- How place HTML elements undefined in AutoConnectElements?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-erase-the-credentials-saved-in-eeprom" class="md-nav__link">
- How erase the credentials saved in EEPROM?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-locate-the-link-button-to-the-autoconnect-menu" class="md-nav__link">
- How locate the link button to the AutoConnect menu?
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-much-memory-does-autoconnect-consume" class="md-nav__link">
- How much memory does AutoConnect consume?
- </a>
-
- <nav class="md-nav" aria-label=" How much memory does AutoConnect consume?">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#sketch-size" class="md-nav__link">
- Sketch size
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#heap-size" class="md-nav__link">
- Heap size
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#i-cannot-complete-to-wi-fi-login-from-smartphone" class="md-nav__link">
- I cannot complete to Wi-Fi login from smartphone.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#i-cannot-see-the-custom-web-page" class="md-nav__link">
- I cannot see the custom Web page.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#saved-credentials-are-wrong-or-lost" class="md-nav__link">
- Saved credentials are wrong or lost.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#some-autoconnect-page-is-cut-off" class="md-nav__link">
- Some AutoConnect page is cut off.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#submit-element-in-a-custom-web-page-does-not-react" class="md-nav__link">
- Submit element in a custom Web page does not react.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#unable-to-change-any-macro-definitions-by-the-sketch" class="md-nav__link">
- Unable to change any macro definitions by the Sketch.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#unauthorize-error-without-prompting-the-login-dialog" class="md-nav__link">
- Unauthorize error without prompting the login dialog.
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#still-not-stable-with-my-sketch" class="md-nav__link">
- Still, not stable with my sketch.
- </a>
-
- <nav class="md-nav" aria-label=" Still, not stable with my sketch.">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#1-change-wifi-channel" class="md-nav__link">
- 1. Change WiFi channel
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#2-change-the-arduino-core-version" class="md-nav__link">
- 2. Change the arduino core version
- </a>
-
- <nav class="md-nav" aria-label="2. Change the arduino core version">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#with-esp8266-arduino-core" class="md-nav__link">
- with ESP8266 arduino core
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#with-esp32-arduino-core" class="md-nav__link">
- with ESP32 arduino core
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#3-turn-on-the-debug-log-options" class="md-nav__link">
- 3. Turn on the debug log options
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#4-reports-the-issue-to-autoconnect-github-repository" class="md-nav__link">
- 4. Reports the issue to AutoConnect Github repository
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- </ul>
-
- </nav>
- </div>
- </div>
- </div>
-
-
- <div class="md-content">
- <article class="md-content__inner md-typeset">
-
-
-
- <h1>FAQ</h1>
-
- <h2 id="after-connected-autoconnect-menu-performs-but-no-happens"><i class="fa fa-question-circle"></i> After connected, AutoConnect menu performs but no happens.<a class="headerlink" href="#after-connected-autoconnect-menu-performs-but-no-happens" title="Permanent link">¶</a></h2>
- <p>If you can access the <strong>AutoConnect root path</strong> as <a href="http://ESP8266IPADDRESS/_ac">http://ESP8266IPADDRESS/_ac</a> from browser, probably the Sketch uses <em>ESP8266WebServer::handleClient()</em> without <a href="api.html#handlerequest"><em>AutoConnect::handleRequest()</em></a>.<br />
- For AutoConnect menus to work properly, call <a href="api.html#handlerequest"><em>AutoConnect::handleRequest()</em></a> after <em>ESP8266WebServer::handleClient()</em> invoked, or use <a href="api.html#handleclient"><em>AutoConnect::handleClient()</em></a>. <a href="api.html#handleclient"><em>AutoConnect::handleClient()</em></a> is equivalent <em>ESP8266WebServer::handleClient</em> combined <a href="api.html#handlerequest"><em>AutoConnect::handleRequest()</em></a>.</p>
- <p>See also the explanation <a href="basicusage.html#esp8266webserver-hosted-or-parasitic">here</a>.</p>
- <h2 id="after-updating-to-autoconnect-v100-established-aps-disappear-from-open-ssids-with-esp32"><i class="fa fa-question-circle"></i> After updating to AutoConnect v1.0.0, established APs disappear from Open SSIDs with ESP32.<a class="headerlink" href="#after-updating-to-autoconnect-v100-established-aps-disappear-from-open-ssids-with-esp32" title="Permanent link">¶</a></h2>
- <p>Since AutoConnect v1.0.0 for ESP32, the storage location in the flash of established credentials has moved from EEPROM to Preferences. After You update AutoConnect to v1.0.0, past credentials saved by v0.9.12 earlier will <em>not be accessible</em> from the AutoConnect menu - <strong>Open SSIDs</strong>. You need to transfer once the stored credentials from the EEPROM area to the Preferences area.</p>
- <p>You can migrate the past saved credentials using <a href="https://github.com/Hieromon/AutoConnect/tree/master/examples/CreditMigrate"><strong>CreditMigrate.ino</strong></a> which the examples folder contains.</p>
- <div class="admonition info">
- <p class="admonition-title">Needs to Arduino core for ESP32 1.0.2 or earlier</p>
- <p>EEPROM area with arduino-esp32 core <strong>1.0.3</strong> has moved from <strong>partition</strong> to the <strong>nvs</strong>. CreditMigrate.ino requires arduino-esp32 core <strong>1.0.2</strong> or earlier to migrate saved credentials.</p>
- </div>
- <h2 id="an-esp8266ap-as-softap-was-connected-but-captive-portal-does-not-start"><i class="fa fa-question-circle"></i> An esp8266ap as SoftAP was connected but Captive portal does not start.<a class="headerlink" href="#an-esp8266ap-as-softap-was-connected-but-captive-portal-does-not-start" title="Permanent link">¶</a></h2>
- <p>Captive portal detection could not be trapped. It is necessary to disconnect and reset ESP8266 to clear memorized connection data in ESP8266. Also, It may be displayed on the smartphone if the connection information of esp8266ap is wrong. In that case, delete the connection information of esp8266ap memorized by the smartphone once.</p>
- <h2 id="cannot-automatically-reconnect-to-a-wifi-hotspot"><i class="fa fa-question-circle"></i> Cannot automatically reconnect to a WiFi Hotspot<a class="headerlink" href="#cannot-automatically-reconnect-to-a-wifi-hotspot" title="Permanent link">¶</a></h2>
- <p>WiFi Hotspot ability using a cell phone has no official designation name, but it is commonly referred to as a mobile hotspot or a Personal Hotspot. Generally, this feature using data communication with your cellular to ensure the connection to the Internet. AutoConnect allows you to connect to a WiFi hotspot that has been temporarily launched as an access point and then stores a credential for establishing a connection in the same way as a regular fixed access point.</p>
- <p>However, there's a case where it may not be able to reconnect automatically to a known WiFi hotspot. For security reasons, some device operating systems randomly change the MAC address of the WiFi hotspot at each boot for a hotspot. (Especially iOS14) AutoConnect uses the BSSID to find the known SSID from among WiFi signals being broadcast. (it's the MAC address) This method works if the BSSID that the hotspot originates is fixed, but AutoConnect will not be able to find known SSIDs when it changes.<br />
- Consider activating the <a href="adconnection.html#match-with-known-access-points-by-ssid">AUTOCONNECT_APKEY_SSID</a> definition if you want to reconnect automatically to a known WiFi hotspot.</p>
- <div class="admonition info">
- <p class="admonition-title">Cannot immobilize the MAC address of Personal Hotspot</p>
- <p>We may not be able to immobilize the MAC address of Personal Hotspot on iOS14. This specification change seems to be related to the private network connection enhancement of iOS14 devices. I found this change during the testing phase, but it is not the confirmed information. (iOS14 offers an option to immobilize the MAC address as a client device, but there is still no option to immobilize it where the device became a hotspot)</p>
- </div>
- <h2 id="captive-portal-does-not-pop-up"><i class="fa fa-question-circle"></i> Captive portal does not pop up.<a class="headerlink" href="#captive-portal-does-not-pop-up" title="Permanent link">¶</a></h2>
- <p>If your ESP module is already transparent to the internet, the captive portal screen will not pop up even if <a href="apiconfig.html#retainportal"><strong>AutoConnectConfig::retainPortal</strong></a> is enabled. Some people have mistaken sometimes about the behavioral condition of the Captive portal, it only pops up automatically when the ESP module is disconnected state from the Internet.</p>
- <p>We will hypothesize that you keep the ESP module with AP_STA mode by specifing the <strong>retainPortal</strong> and already connect to one of the access points which has Internet transparency as a WiFi client. At this time, your ESP module can already quote the DNS globally. Even if you take out the cellphone and access the <strong>esp32ap</strong>, the OS of your cellphone will determine that the access point (i.e. <strong>esp32ap</strong>) is transparent to the Internet. That is, the captive portal does not pop up.</p>
- <h2 id="compile-error-that-eeprom-was-not-declared-in-this-scope"><i class="fa fa-question-circle"></i> Compile error that 'EEPROM' was not declared in this scope<a class="headerlink" href="#compile-error-that-eeprom-was-not-declared-in-this-scope" title="Permanent link">¶</a></h2>
- <p>If the user sketch includes the header file as <code>EEPROM.h</code>, this compilation error may occur depending on the order of the <code>#include</code> directives. <code>AutoConnectCredentials.h</code> including in succession linked from <code>AutoConnect.h</code> defines <strong>NO_GLOBAL_EEPROM</strong> internally, so if your sketch includes <code>EEPROM.h</code> after <code>AutoConnect.h</code>, the <strong>EEPROM</strong> global variable will be lost.</p>
- <p>If you use EEPROM with your sketch, declare <code>#include <EEPROM.h></code> in front of <code>#include <AutoConnect.h></code>.</p>
- <h2 id="compile-error-that-esphttpupdate-was-not-declared-in-this-scope"><i class="fa fa-question-circle"></i> Compile error that 'ESPhttpUpdate' was not declared in this scope<a class="headerlink" href="#compile-error-that-esphttpupdate-was-not-declared-in-this-scope" title="Permanent link">¶</a></h2>
- <p>If the user sketch includes the header file as <code>ESP8266httpUpdate.h</code>, this compilation error may occur depending on the order of the <code>#include</code> directives. <code>AutoConnectUpdate.h</code> including in succession linked from <code>AutoConnect.h</code> defines <strong>NO_GLOBAL_HTTPUPDATE</strong> internally, so if your sketch includes <code>ESP8266httpUpdate.h</code> after <code>AutoConnect.h</code>, the <strong>ESPhttpUpdate</strong> global variable will be lost.</p>
- <p>You can avoid a compile error in one of two ways:</p>
- <ol>
- <li>
- <p>Disable an AutoConnectUpdate feature if you don't need.</p>
- <p>You can disable the AutoConnectUpdate feature by commenting out the <a href="https://github.com/Hieromon/AutoConnect/blob/master/src/AutoConnectDefs.h#L34"><strong>AUTOCONNECT_USE_UPDATE</strong></a> macro in the <a href="api.html#defined-macros"><code>AutoConnectDefs.h</code></a> header file.
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #75715e">#define AUTOCONNECT_USE_UPDATE</span>
- </code></pre></div></p>
- </li>
- <li>
- <p>Change the order of <code>#include</code> directives.</p>
- <p>With the Sketch, <code>#include <ESP8266httpUpdate.h></code> before <code>#include <AutoConnect.h></code>.</p>
- </li>
- </ol>
- <h2 id="connection-lost-immediately-after-establishment-with-ap"><i class="fa fa-question-circle"></i> Connection lost immediately after establishment with AP<a class="headerlink" href="#connection-lost-immediately-after-establishment-with-ap" title="Permanent link">¶</a></h2>
- <p>A captive portal is disconnected immediately after the connection establishes with the new AP. This is a known problem of ESP32, and it may occur when the following conditions are satisfied at the same time.</p>
- <ul>
- <li>SoftAP channel on ESP32 and the connecting AP channel you specified are different. (The default channel of SoftAP is 1.)</li>
- <li>NVS had erased by erase_flash causes the connection data lost. The NVS partition has been moved. Never connected to the AP in the past.</li>
- <li>There are receivable multiple WiFi signals which are the same SSID with different channels using the WiFi repeater etc. (This condition is loose, it may occur even if there is no WiFi repeater.)</li>
- <li>Or the using channel of the AP which established a connection is congested with the radio signal on the same band. (If the channel crowd, connections to known APs may also fail.)</li>
- </ul>
- <div class="admonition info">
- <p class="admonition-title">Other possibilities</p>
- <p>The above conditions are not absolute. It results from my investigation, and other conditions may exist.</p>
- </div>
- <p>To avoid this problem, try <a href="#1-change-wifi-channel">changing the channel</a>.</p>
- <p>ESP32 hardware equips only one RF circuitry for WiFi signal. At the AP_STA mode, ESP32 as an AP attempts connect to another AP on another channel while keeping the connection with the station then the channel switching will occur causes the station may be disconnected. But it may not be just a matter of channel switching causes ESP8266 has the same constraints too. It may be a problem with AutoConnect or the arduino core or SDK issue. This problem will persist until a specific solution.</p>
- <h2 id="data-saved-to-eeprom-is-different-from-my-sketch-wrote"><i class="fa fa-question-circle"></i> Data saved to EEPROM is different from my sketch wrote.<a class="headerlink" href="#data-saved-to-eeprom-is-different-from-my-sketch-wrote" title="Permanent link">¶</a></h2>
- <p>By default, AutoConnect saves the credentials of the established connection into EEPROM. The credential area of EEPROM used by AutoConnect will conflict with data owned by the user sketch if without measures taken. It will destroy the user sketch data and the data stored in EEPROM by AutoConnect with each other.<br />
- You have the following two options to avoid this conflict:</p>
- <ul>
- <li>
- <p>Move the credential saving area of EEPROM.<br />
- You can protect your data from corruption by notifying AutoConnect where to save credentials. Notification of the save location for the credentials uses <a href="apiconfig.html#boundaryoffset">AutoConnectConfig::boundaryOffset</a> option. Refer to the chapter on <a href="advancedusage.html#move-the-saving-area-of-eeprom-for-the-credentials">Advanced usage</a> for details.</p>
- </li>
- <li>
- <p>Suppresses the automatic save operation of credentials by AutoConnect.<br />
- You can completely stop saving the credentials by AutoConnect. However, if you select this option, you lose the past credentials which were able to connect to the AP. Therefore, the effect of the <a href="advancedusage.html#automatic-reconnect">automatic reconnection feature</a> will be lost.<br />
- If you want to stop the automatic saving of the credentials, uses <a href="apiconfig.html#autosave">AutoConnectConfig::autoSave</a> option specifying <strong>AC_SAVECREDENTIAL_NEVER</strong>. Refer to the chapter on <a href="advancedusage.html#autosave-credential">Advanced usage</a> for details.</p>
- </li>
- </ul>
- <h2 id="does-not-appear-esp8266ap-in-smartphone"><i class="fa fa-question-circle"></i> Does not appear esp8266ap in smartphone.<a class="headerlink" href="#does-not-appear-esp8266ap-in-smartphone" title="Permanent link">¶</a></h2>
- <p>Maybe it is successfully connected at the <a href="lsbegin.html#autoconnectbegin-logic-sequence"><strong>1<sup>st</sup>-WiFi.begin</strong></a>. ESP8266 remembers the last SSID successfully connected and will use at the next. It means SoftAP will only start up when the first <em>WiFi.begin()</em> fails.</p>
- <p>The saved SSID would be cleared by <em>WiFi.disconnect()</em> with WIFI_STA mode. If you do not want automatic reconnection, you can erase the memorized SSID with the following simple sketch.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #75715e">#include</span> <span style="color: #75715e"><ESP8266WiFi.h></span>
- <span style="color: #66d9ef">void</span> <span style="color: #a6e22e">setup</span><span style="color: #f8f8f2">()</span> <span style="color: #f8f8f2">{</span>
- <span style="color: #f8f8f2">delay(</span><span style="color: #ae81ff">1000</span><span style="color: #f8f8f2">);</span>
- <span style="color: #f8f8f2">Serial.begin(</span><span style="color: #ae81ff">115200</span><span style="color: #f8f8f2">);</span>
- <span style="color: #f8f8f2">WiFi.mode(WIFI_STA);</span>
- <span style="color: #f8f8f2">delay(</span><span style="color: #ae81ff">100</span><span style="color: #f8f8f2">);</span>
- <span style="color: #f8f8f2">WiFi.begin();</span>
- <span style="color: #66d9ef">if</span> <span style="color: #f8f8f2">(WiFi.waitForConnectResult()</span> <span style="color: #f92672">==</span> <span style="color: #f8f8f2">WL_CONNECTED)</span> <span style="color: #f8f8f2">{</span>
- <span style="color: #f8f8f2">WiFi.disconnect();</span>
- <span style="color: #66d9ef">while</span> <span style="color: #f8f8f2">(WiFi.status()</span> <span style="color: #f92672">==</span> <span style="color: #f8f8f2">WL_CONNECTED)</span>
- <span style="color: #f8f8f2">delay(</span><span style="color: #ae81ff">100</span><span style="color: #f8f8f2">);</span>
- <span style="color: #f8f8f2">}</span>
- <span style="color: #f8f8f2">Serial.println(</span><span style="color: #e6db74">"WiFi disconnected."</span><span style="color: #f8f8f2">);</span>
- <span style="color: #f8f8f2">}</span>
- <span style="color: #66d9ef">void</span> <span style="color: #a6e22e">loop</span><span style="color: #f8f8f2">()</span> <span style="color: #f8f8f2">{</span>
- <span style="color: #f8f8f2">delay(</span><span style="color: #ae81ff">1000</span><span style="color: #f8f8f2">);</span>
- <span style="color: #f8f8f2">}</span>
- </code></pre></div>
- <details class="hint"><summary>You can interactively check the WiFi state of ESP8266.</summary><p>Please try <a href="https://github.com/Hieromon/ESPShaker"><strong>ESPShaker</strong></a>. It is ESP8266 interactive serial command processor.</p>
- <p><img src="images/espshaker.gif" /></p>
- </details>
- <h2 id="does-not-response-from-_ac"><i class="fa fa-question-circle"></i> Does not response from /_ac.<a class="headerlink" href="#does-not-response-from-_ac" title="Permanent link">¶</a></h2>
- <p>Probably <strong>WiFi.begin</strong> failed with the specified SSID. Activating the <a href="advancedusage.html#debug-print">debug printing</a> will help you to track down the cause.</p>
- <h2 id="hang-up-after-reset"><i class="fa fa-question-circle"></i> Hang up after Reset?<a class="headerlink" href="#hang-up-after-reset" title="Permanent link">¶</a></h2>
- <p>If ESP8266 hang up after reset by AutoConnect menu, perhaps manual reset is not yet. Especially if it is not manual reset yet after uploading the Sketch, the boot mode will stay 'Uart Download'. There is some discussion about this on the Github's ESP8266 core: <a href="https://github.com/esp8266/Arduino/issues/1017">https://github.com/esp8266/Arduino/issues/1017</a> <sup id="fnref:1"><a class="footnote-ref" href="#fn:1">1</a></sup></p>
- <p>If you received the following message, the boot mode is still sketch uploaded. It needs to the manual reset once.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">ets</span> <span style="color: #f8f8f2">Jan</span> <span style="color: #f8f8f2">8</span> <span style="color: #f8f8f2">2013,rst</span> <span style="color: #f8f8f2">cause</span><span style="color: #960050; background-color: #1e0010">:</span><span style="color: #f8f8f2">2,</span> <span style="color: #f8f8f2">boot</span> <span style="color: #f8f8f2">mode</span><span style="color: #960050; background-color: #1e0010">:</span><span style="color: #f8f8f2">(1,6)</span> <span style="color: #f8f8f2">or</span> <span style="color: #f8f8f2">(1,7)</span>
- <span style="color: #f8f8f2">ets</span> <span style="color: #f8f8f2">Jan</span> <span style="color: #f8f8f2">8</span> <span style="color: #f8f8f2">2013,rst</span> <span style="color: #f8f8f2">cause</span><span style="color: #960050; background-color: #1e0010">:</span><span style="color: #f8f8f2">4,</span> <span style="color: #f8f8f2">boot</span> <span style="color: #f8f8f2">mode</span><span style="color: #960050; background-color: #1e0010">:</span><span style="color: #f8f8f2">(1,6)</span> <span style="color: #f8f8f2">or</span> <span style="color: #f8f8f2">(1,7)</span>
- <span style="color: #f8f8f2">wdt</span> <span style="color: #f8f8f2">reset</span>
- </code></pre></div>
- <p>The correct boot mode for starting the Sketch is <strong>(3, x)</strong>.</p>
- <div class="admonition info">
- <p class="admonition-title">ESP8266 Boot Messages</p>
- <p>It is described by <a href="https://www.espressif.com/en/products/hardware/esp8266ex/resources">ESP8266 Non-OS SDK API Reference</a>, section A.5.</p>
- <table>
- <thead>
- <tr>
- <th>Messages</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>rst cause</td>
- <td>1: power on<br>2: external reset<br>4: hardware watchdog reset</td>
- </tr>
- <tr>
- <td>boot mode<br>(the first parameter)</td>
- <td>1: ESP8266 is in UART-down mode (and downloads firmware into flash).<br>3: ESP8266 is in Flash-boot mode (and boots up from flash).</td>
- </tr>
- </tbody>
- </table>
- </div>
- <h2 id="how-can-i-detect-the-captive-portal-starting"><i class="fa fa-question-circle"></i> How can I detect the captive portal starting?<a class="headerlink" href="#how-can-i-detect-the-captive-portal-starting" title="Permanent link">¶</a></h2>
- <p>You can use the <a href="api.html#ondetect">AutoConnect::onDetect</a> exit routine. For more details and an implementation example of the onDetect exit routine, refer to the chapter "<a href="advancedusage.html#captive-portal-start-detection">Captive portal start detection</a>".</p>
- <h2 id="how-change-http-port"><i class="fa fa-question-circle"></i> How change HTTP port?<a class="headerlink" href="#how-change-http-port" title="Permanent link">¶</a></h2>
- <p>HTTP port number is defined as a macro in <a href="https://github.com/Hieromon/AutoConnect/blob/master/src/AutoConnectDefs.h#L123">AutoConnectDefs.h</a> header file. You can change it directly with several editors and must re-compile.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #75715e">#define AUTOCONNECT_HTTPPORT 80</span>
- </code></pre></div>
- <h2 id="how-change-ssid-or-password-in-captive-portal"><i class="fa fa-question-circle"></i> How change SSID or Password in Captive portal?<a class="headerlink" href="#how-change-ssid-or-password-in-captive-portal" title="Permanent link">¶</a></h2>
- <p>You can change both by using <a href="apiconfig.html#apid">AutoConnectConfig::apid</a> and <a href="apiconfig.html#psk">AutoConnectConfig::psk</a>. Refer to section <a href="advancedusage.html#change-ssid-and-password-for-softap">Change SSID and Password for SoftAP</a> in <a href="advancedusage.html">Advanced usage</a>.</p>
- <h2 id="how-do-i-detach-the-ardunojson"><i class="fa fa-question-circle"></i> How do I detach the ArdunoJson?<a class="headerlink" href="#how-do-i-detach-the-ardunojson" title="Permanent link">¶</a></h2>
- <p>If you don't use ArduinoJson at all, you can detach it from the library. By detaching ArduinoJson, the binary size after compilation can be reduced. You can implement custom Web pages with your sketches without using ArduinoJson. Its method is described in <a href="wojson.html">Custom Web pages w/o JSON</a>.<br />
- To completely remove ArduinoJson at compile-time from the binary, you need to define a special <code>#define</code> directive for it. And if you define the directive, you will not be able to use the <a href="otaserver.html#updates-with-the-update-server">OTA update with the update server</a> feature as well as AutoConnectAux described by JSON.</p>
- <p>To exclude ArduinoJson at compile-time, give the following <code>#define</code> directive as a compiler option such as the <a href="https://github.com/arduino/arduino-cli">arduino-cli</a> or <a href="https://platformio.org/">PlatformIO</a>.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #75715e">#define AUTOCONNECT_NOUSE_JSON</span>
- </code></pre></div>
- <p>For example, add the following description to the <code>[env]</code> section of the <code>platformio.ini</code> file with the <code>build-flags</code>.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #a6e22e">build-flags</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">-DAUTOCONNECT_NOUSE_JSON</span>
- </code></pre></div>
- <h2 id="how-place-html-elements-undefined-in-autoconnectelements"><i class="fa fa-question-circle"></i> How place HTML elements undefined in AutoConnectElements?<a class="headerlink" href="#how-place-html-elements-undefined-in-autoconnectelements" title="Permanent link">¶</a></h2>
- <p><a href="acelements.html#autoconnectelement-a-basic-class-of-elements">AutoConnectElement</a> can be applied in many cases when trying to place HTML elements that are undefined in AutoConnectElemets on custom Web pages. See <a href="achandling.html#place-html-elements-undefined-in-autoconnectelements"><em>Handling the custom Web Pages</em></a> section.</p>
- <h2 id="how-erase-the-credentials-saved-in-eeprom"><i class="fa fa-question-circle"></i> How erase the credentials saved in EEPROM?<a class="headerlink" href="#how-erase-the-credentials-saved-in-eeprom" title="Permanent link">¶</a></h2>
- <p>Make some sketches for erasing the EEPROM area, or some erasing utility is needed. You can prepare the Sketch to erase the saved credential with <em>AutoConnectCredential</em>. The <em>AutoConnectCrendential</em> class provides the access method to the saved credential in EEPROM and library source file is including it. Refer to '<a href="credit.html#saved-credential-in-eeprom">Saved credential access</a>' on section <a href="credit.html"><em>Appendix</em></a> for details.</p>
- <div class="admonition hint">
- <p class="admonition-title">Hint</p>
- <p>With the <a href="https://github.com/Hieromon/ESPShaker"><strong>ESPShaker</strong></a>, you can access EEPROM interactively from the serial monitor, and of course you can erase saved credentials.</p>
- </div>
- <h2 id="how-locate-the-link-button-to-the-autoconnect-menu"><i class="fa fa-question-circle"></i> How locate the link button to the AutoConnect menu?<a class="headerlink" href="#how-locate-the-link-button-to-the-autoconnect-menu" title="Permanent link">¶</a></h2>
- <p>Link button to AutoConnect menu can be embedded into Sketch's web page. The root path of the menu is <strong>/_ac</strong> by default and embed the following <code><a></a></code> tag in the generating HTML.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2"><</span><span style="color: #f92672">a</span> <span style="color: #a6e22e">style</span><span style="color: #f92672">=</span><span style="color: #e6db74">"background-color:SteelBlue; display:inline-block; padding:7px 13px; text-decoration:none;"</span> <span style="color: #a6e22e">href</span><span style="color: #f92672">=</span><span style="color: #e6db74">"/_ac"</span><span style="color: #f8f8f2">></span>MENU<span style="color: #f8f8f2"></</span><span style="color: #f92672">a</span><span style="color: #f8f8f2">></span>
- </code></pre></div>
- <h2 id="how-much-memory-does-autoconnect-consume"><i class="fa fa-question-circle"></i> How much memory does AutoConnect consume?<a class="headerlink" href="#how-much-memory-does-autoconnect-consume" title="Permanent link">¶</a></h2>
- <h3 id="sketch-size">Sketch size<a class="headerlink" href="#sketch-size" title="Permanent link">¶</a></h3>
- <ol>
- <li>
- <p>For ESP8266<br />
- It increases about 53K bytes compared to the case without AutoConnect. A sketch size of the most simple example introduced in the Getting started is about 330K bytes. (270K byte without AutoConnect)</p>
- </li>
- <li>
- <p>For ESP32<br />
- The BIN size of the sketch grows to over 1M bytes. In the case of a sketch with many custom Web pages, when applying the partition table for the default scheme, the remaining flash size that can be utilized by the user application may be less than 200K bytes. Therefore, it is advisable to resize the partition to make more available space for the application. The ESP32 arduino core has various <a href="https://github.com/espressif/arduino-esp32/tree/master/tools/partitions">partition schemes</a>, and you can choose it according to your Sketch feature.<br />
- You can change the partition scheme from the <strong>Tools > Partition Scheme</strong> menu of Arduino IDE.</p>
- </li>
- </ol>
- <p><img src="images/partition.png"></p>
- <div class="admonition hint">
- <p class="admonition-title">Change the partition scheme with PlatformIO</p>
- <p>Use <code>board_build.partitions</code> directive with <code>platformio.ini</code>.
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #66d9ef">[env:esp32dev]</span>
- <span style="color: #a6e22e">board_build.partitions</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">min_spiffs.csv</span>
- </code></pre></div>
- Details for the <a href="https://docs.platformio.org/en/latest/platforms/espressif32.html#partition-tables">PlatformIO documentation</a>.</p>
- </div>
- <h3 id="heap-size">Heap size<a class="headerlink" href="#heap-size" title="Permanent link">¶</a></h3>
- <p>It consumes about 2K bytes in the static and about 12K bytes are consumed at the moment when menu executed.</p>
- <h2 id="i-cannot-complete-to-wi-fi-login-from-smartphone"><i class="fa fa-question-circle"></i> I cannot complete to Wi-Fi login from smartphone.<a class="headerlink" href="#i-cannot-complete-to-wi-fi-login-from-smartphone" title="Permanent link">¶</a></h2>
- <p>Because AutoConnect does not send a login success response to the captive portal requests from the smartphone. The login success response varies iOS, Android and Windows. By analyzing the request URL of different login success inquiries for each OS, the correct behavior can be implemented, but not yet. Please resets ESP8266 from the AutoConnect menu.</p>
- <h2 id="i-cannot-see-the-custom-web-page"><i class="fa fa-question-circle"></i> I cannot see the custom Web page.<a class="headerlink" href="#i-cannot-see-the-custom-web-page" title="Permanent link">¶</a></h2>
- <p>If the Sketch is correct, a JSON syntax error may have occurred. In this case, activate the <a href="faq.html#3-turn-on-the-debug-log-options">AC_DEBUG</a> and rerun. If you take the message of JSON syntax error, the <a href="https://arduinojson.org/v5/assistant/">Json Assistant</a> helps syntax checking. This online tool is provided by the author of ArduinoJson and is most consistent for the AutoConnect. </p>
- <h2 id="saved-credentials-are-wrong-or-lost"><i class="fa fa-question-circle"></i> Saved credentials are wrong or lost.<a class="headerlink" href="#saved-credentials-are-wrong-or-lost" title="Permanent link">¶</a></h2>
- <p>A structure of AutoConnect saved credentials has changed two times throughout enhancement with v1.0.3 and v1.1.0. In particular, due to enhancements in v1.1.0, AutoConnectCredential data structure has lost the backward compatibility with previous versions. You must erase the flash of the ESP module using the esptool completely to save the credentials correctly with v1.1.0.
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">esptool</span> <span style="color: #f8f8f2">-c</span> <span style="color: #f8f8f2">esp8266</span> <span style="color: #f8f8f2">(or</span> <span style="color: #f8f8f2">esp32)</span> <span style="color: #f8f8f2">-p</span> <span style="color: #66d9ef">[COM_PORT]</span> <span style="color: #f8f8f2">erase_flash</span>
- </code></pre></div></p>
- <h2 id="some-autoconnect-page-is-cut-off"><i class="fa fa-question-circle"></i> Some AutoConnect page is cut off.<a class="headerlink" href="#some-autoconnect-page-is-cut-off" title="Permanent link">¶</a></h2>
- <p>It may be two possibilities as follows:</p>
- <ol>
- <li>Packet loss during transmission due to a too weak WiFi signal.</li>
- <li>Heap is insufficient memory. AutoConnect entrusts HTML generation to PageBuilder that makes heavy use the String::concatenate function and causes memory fragmentation. This is a structural problem with PageBuilder, but it is difficult to solve immediately.</li>
- </ol>
- <p>If this issue produces with your sketch, Reloading the page may recover.<br />
- Also, you can check the memory running out status by rebuilding the Sketch with <a href="faq.html#fn:2">PageBuilder's debug log option</a> turned on.</p>
- <p>If the heap memory is insufficient, the following message is displayed on the serial console.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #66d9ef">[PB]</span> <span style="color: #f8f8f2">Failed</span> <span style="color: #f8f8f2">building,</span> <span style="color: #f8f8f2">free</span> <span style="color: #f8f8f2">heap</span><span style="color: #960050; background-color: #1e0010">:</span><span style="color: #f8f8f2"><Size</span> <span style="color: #f8f8f2">of</span> <span style="color: #f8f8f2">free</span> <span style="color: #f8f8f2">heap></span>
- </code></pre></div>
- <h2 id="submit-element-in-a-custom-web-page-does-not-react"><i class="fa fa-question-circle"></i> Submit element in a custom Web page does not react.<a class="headerlink" href="#submit-element-in-a-custom-web-page-does-not-react" title="Permanent link">¶</a></h2>
- <p>Is there the AutoConnectElements element named <strong>SUBMIT</strong> in the custom Web page? (case sensitive ignored) AutoConnect does not rely on the <code>input type=submit</code> element for the form submission and uses <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit">HTML form element submit</a> function instead. So, the submit function will fail if there is an element named 'submit' in the form. You can not use <strong>SUBMIT</strong> as the element name of AutoConnectElements in a custom Web page that declares the AutoConnectSubmit element.</p>
- <h2 id="unable-to-change-any-macro-definitions-by-the-sketch"><i class="fa fa-question-circle"></i> Unable to change any macro definitions by the Sketch.<a class="headerlink" href="#unable-to-change-any-macro-definitions-by-the-sketch" title="Permanent link">¶</a></h2>
- <p>The various macro definitions that determine the configuration of AutoConnect cannot be redefined by hard-coding with Sketch. The compilation unit has a different AutoConnect library itself than the Sketch, and the configuration definitions in AutoConnectDefs.h are quoted in the compilation for AutoConnect only. For example, the following Sketch does not enable AC_DEBUG and does not change HTTP port also the menu background color:</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="background-color: #49483e"><span style="color: #75715e">#define AC_DEBUG // No effect</span>
- </span><span style="background-color: #49483e"><span style="color: #75715e">#define AUTOCONNECT_HTTPPORT 8080 // No effect</span>
- </span><span style="background-color: #49483e"><span style="color: #75715e">#define AUTOCONNECT_MENUCOLOR_BACKGROUND "#696969" // No effect</span>
- </span><span style="color: #75715e">#include</span> <span style="color: #75715e"><ESP8266WiFi.h></span>
- <span style="color: #75715e">#include</span> <span style="color: #75715e"><ESP8266WebServer.h></span>
- <span style="color: #75715e">#include</span> <span style="color: #75715e"><AutoConnect.h></span>
- <span style="color: #f8f8f2">AutoConnect</span> <span style="color: #f8f8f2">Portal;</span>
- <span style="color: #66d9ef">void</span> <span style="color: #a6e22e">setup</span><span style="color: #f8f8f2">()</span> <span style="color: #f8f8f2">{</span>
- <span style="color: #f8f8f2">Portal.begin();</span>
- <span style="color: #f8f8f2">}</span>
- <span style="color: #66d9ef">void</span> <span style="color: #a6e22e">loop</span><span style="color: #f8f8f2">()</span> <span style="color: #f8f8f2">{</span>
- <span style="color: #f8f8f2">Portal.handleClient();</span>
- <span style="color: #f8f8f2">}</span>
- </code></pre></div>
- <p>To enable them, edit <code>AutoConnectDefs.h</code> as the library source code directly, or supply them as the external parameters using a build system like <a href="https://platformio.org/platformio-ide">PlatformIO</a> with <a href="https://docs.platformio.org/en/latest/projectconf/section_env_build.html?highlight=build_flags#build-flags"><code>platformio.ini</code></a>:</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #a6e22e">platform</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">espressif8266</span>
- <span style="color: #a6e22e">board</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">nodemcuv2</span>
- <span style="color: #a6e22e">board_build.f_cpu</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">160000000L</span>
- <span style="color: #a6e22e">board_build.f_flash</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">80000000L</span>
- <span style="color: #a6e22e">board_build.flash_mode</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">dio</span>
- <span style="color: #a6e22e">board_build.filesystem</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">littlefs</span>
- <span style="background-color: #49483e"><span style="color: #a6e22e">build_flags</span> <span style="color: #f92672">=</span><span style="color: #e6db74"></span>
- </span><span style="background-color: #49483e"><span style="color: #e6db74"> -DAC_DEBUG</span>
- </span><span style="background-color: #49483e"><span style="color: #e6db74"> -DAUTOCONNECT_HTTPPORT=8080</span>
- </span><span style="background-color: #49483e"><span style="color: #e6db74"> -DAUTOCONNECT_MENUCOLOR_BACKGROUND='"#696969"'</span>
- </span></code></pre></div>
- <h2 id="unauthorize-error-without-prompting-the-login-dialog"><i class="fa fa-question-circle"></i> Unauthorize error without prompting the login dialog.<a class="headerlink" href="#unauthorize-error-without-prompting-the-login-dialog" title="Permanent link">¶</a></h2>
- <p>The custom web pages that require authentication will occur unauthorized error always without prompting the login dialog under the captive portal state on some OS. This is a captive portal restriction and expected behavior. The captive portal web browser is almost a complete web browser, but while the captive portal session restricts the response to <code>WWW-authenticate</code> requests. (In intrinsically, the captive portal is a mechanism for authentication in itself)</p>
- <p>Once you exit from the captive portal session and connect SoftAP IP directly afresh, you can access custom web pages along with prompting a login dialog.</p>
- <h2 id="still-not-stable-with-my-sketch"><i class="fa fa-question-circle"></i> Still, not stable with my sketch.<a class="headerlink" href="#still-not-stable-with-my-sketch" title="Permanent link">¶</a></h2>
- <p>If AutoConnect behavior is not stable with your sketch, you can try the following measures.</p>
- <h3 id="1-change-wifi-channel">1. Change WiFi channel<a class="headerlink" href="#1-change-wifi-channel" title="Permanent link">¶</a></h3>
- <p>Both ESP8266 and ESP32 can only work on one channel at any given moment. This will cause your station to lose connectivity on the channel hosting the captive portal. If the channel of the AP which you want to connect is different from the SoftAP channel, the operation of the captive portal will not respond with the screen of the AutoConnect connection attempt remains displayed. In such a case, please try to configure the <a href="apiconfig.html#channel">channel</a> with <a href="apiconfig.html#autoconnectconfig">AutoConnectConfig</a> to match the access point.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnect</span> <span style="color: #f8f8f2">portal;</span>
- <span style="color: #f8f8f2">AutoConnectConfig</span> <span style="color: #f8f8f2">config;</span>
- <span style="color: #f8f8f2">config.channel</span> <span style="color: #f92672">=</span> <span style="color: #ae81ff">3</span><span style="color: #f8f8f2">;</span> <span style="color: #75715e">// Specifies a channel number that matches the AP</span>
- <span style="color: #f8f8f2">portal.config(config);</span> <span style="color: #75715e">// Apply channel configuration</span>
- <span style="color: #f8f8f2">portal.begin();</span> <span style="color: #75715e">// Start the portal</span>
- </code></pre></div>
- <div class="admonition info">
- <p class="admonition-title">Channel selection guide</p>
- <p>Espressif Systems has released a <a href="https://www.espressif.com/sites/default/files/esp8266_wi-fi_channel_selection_guidelines.pdf">channel selection guide</a>.</p>
- </div>
- <h3 id="2-change-the-arduino-core-version">2. Change the arduino core version<a class="headerlink" href="#2-change-the-arduino-core-version" title="Permanent link">¶</a></h3>
- <p>I recommend change installed an arduino core version to the upstream when your sketch is not stable with AutoConnect on each board.</p>
- <h4 id="with-esp8266-arduino-core">with ESP8266 arduino core<a class="headerlink" href="#with-esp8266-arduino-core" title="Permanent link">¶</a></h4>
- <p>You can select the <a href="http://lwip.wikia.com/wiki/LwIP_Wiki">lwIP</a> variant to contribute for the stable behavior. The <strong>lwIP v2 Lower memory</strong> option of Arduino IDE for core version 2.4.2 is based on the lwIP-v2. On the other hand, the core version 2.5.0 upstream is based on the lwIP-2.1.2 stable release.</p>
- <p>You can select the option from Arduino IDE as <strong>Tool</strong> menu, if you are using ESP8266 core 2.5.0. It can be select <code>lwIP v2 Lower Memory</code> option. (not <code>lwIP v2 Lower Memory (no features)</code>) It is expected to improve response performance and stability.</p>
- <h4 id="with-esp32-arduino-core">with ESP32 arduino core<a class="headerlink" href="#with-esp32-arduino-core" title="Permanent link">¶</a></h4>
- <p>The <a href="https://github.com/espressif/arduino-esp32">arduino-esp32</a> is still under development. It is necessary to judge whether the problem cause of the core or AutoConnect. Trace the log with the esp32 core and the AutoConnect debug option enabled for problem diagnosis and please you check the <a href="https://github.com/espressif/arduino-esp32/issues">issue of arduino-esp32</a>. The problem that your sketch possesses may already have been solved.</p>
- <h3 id="3-turn-on-the-debug-log-options">3. Turn on the debug log options<a class="headerlink" href="#3-turn-on-the-debug-log-options" title="Permanent link">¶</a></h3>
- <p>To fully enable for the AutoConnect debug logging options, change the following two files.</p>
- <p><i class="fas fa-angle-right"></i> AutoConnectDefs.h</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #75715e">#define AC_DEBUG</span>
- </code></pre></div>
- <p><i class="fas fa-angle-right"></i> PageBuilder.h <sup id="fnref:2"><a class="footnote-ref" href="#fn:2">2</a></sup></p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #75715e">#define PB_DEBUG</span>
- </code></pre></div>
- <div class="admonition info">
- <p class="admonition-title">How to enable the AC_DEBUG, PB_DEBUG</p>
- <p>See <a href="adothers.html#debug-print"><em>Debug Print</em></a> section, and <a href="faq.html#unable-to-change-any-macro-definitions-by-the-sketch"><em>one similarly</em></a> too.</p>
- </div>
- <h3 id="4-reports-the-issue-to-autoconnect-github-repository">4. Reports the issue to AutoConnect Github repository<a class="headerlink" href="#4-reports-the-issue-to-autoconnect-github-repository" title="Permanent link">¶</a></h3>
- <p>If you can not solve AutoConnect problems please report to <a href="https://github.com/Hieromon/AutoConnect/issues">Issues</a>. And please make your question comprehensively, not a statement. Include all relevant information to start the problem diagnostics as follows:<sup id="fnref:3"><a class="footnote-ref" href="#fn:3">3</a></sup></p>
- <ul class="task-list">
- <li class="task-list-item"><input type="checkbox" disabled/> Hardware module</li>
- <li class="task-list-item"><input type="checkbox" disabled/> Arduino core version Including the upstream commit ID if necessary</li>
- <li class="task-list-item"><input type="checkbox" disabled/> Operating System which you use</li>
- <li class="task-list-item"><input type="checkbox" disabled/> Your smartphone OS and version (Especially for Android)</li>
- <li class="task-list-item"><input type="checkbox" disabled/> Your AP information (IP, channel) if related</li>
- <li class="task-list-item"><input type="checkbox" disabled/> lwIP variant</li>
- <li class="task-list-item"><input type="checkbox" disabled/> Problem description</li>
- <li class="task-list-item"><input type="checkbox" disabled/> If you have a STACK DUMP decoded result with formatted by the code block tag</li>
- <li class="task-list-item"><input type="checkbox" disabled/> the Sketch code with formatted by the code block tag (Reduce to the reproducible minimum code for the problem)</li>
- <li class="task-list-item"><input type="checkbox" disabled/> Debug messages output (Including arduino core)</li>
- </ul>
- <p>I will make efforts to solve as quickly as possible. But I would like you to know that it is not always possible.</p>
- <p>Thank you.</p>
- <div class="footnote">
- <hr />
- <ol>
- <li id="fn:1">
- <p>This issue has been resolved in ESP8266 core 2.5.0 and later. <a class="footnote-backref" href="#fnref:1" title="Jump back to footnote 1 in the text">↩</a></p>
- </li>
- <li id="fn:2">
- <p><code>PageBuilder.h</code> exists in the <code>libraries/PageBuilder/src</code> directory under your sketch folder. <a class="footnote-backref" href="#fnref:2" title="Jump back to footnote 2 in the text">↩</a></p>
- </li>
- <li id="fn:3">
- <p>Without this information, the reproducibility of the problem is reduced, making diagnosis and analysis difficult. <a class="footnote-backref" href="#fnref:3" title="Jump back to footnote 3 in the text">↩</a></p>
- </li>
- </ol>
- </div>
-
-
-
-
-
- </article>
- </div>
- </div>
- </main>
-
-
- <footer class="md-footer">
-
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid" aria-label="Footer">
-
- <a href="changelabel.html" class="md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-footer-nav__button md-icon">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
- </div>
- <div class="md-footer-nav__title">
- <div class="md-ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Change label text
- </div>
- </div>
- </a>
-
-
- <a href="changelog.html" class="md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-footer-nav__title">
- <div class="md-ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Change log
- </div>
- </div>
- <div class="md-footer-nav__button md-icon">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
- </div>
- </a>
-
- </nav>
- </div>
-
- <div class="md-footer-meta md-typeset">
- <div class="md-footer-meta__inner md-grid">
- <div class="md-footer-copyright">
-
- <div class="md-footer-copyright__highlight">
- Copyright © 2018-2020 Hieromon Ikasamo
- </div>
-
- Made with
- <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs
- </a>
- </div>
-
- <div class="md-footer-social">
-
-
-
-
-
-
- <a href="https://github.com/Hieromon" target="_blank" rel="noopener" title="github.com" class="md-footer-social__link">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
- </a>
-
-
-
-
-
-
- <a href="https://twitter.com/hieromon" target="_blank" rel="noopener" title="twitter.com" class="md-footer-social__link">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg>
- </a>
-
- </div>
- </div>
- </div>
- </footer>
-
- </div>
-
- <script src="assets/javascripts/vendor.fd16492e.min.js"></script>
- <script src="assets/javascripts/bundle.7836ba4d.min.js"></script><script id="__lang" type="application/json">{"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}</script>
-
- <script>
- app = initialize({
- base: ".",
- features: [],
- search: Object.assign({
- worker: "assets/javascripts/worker/search.4ac00218.min.js"
- }, typeof search !== "undefined" && search)
- })
- </script>
-
- <script src="js/gifffer.min.js"></script>
-
-
- </body>
- </html>
|