123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538 |
- <!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/acelements.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>AutoConnectElements - 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="#the-elements-for-the-custom-web-pages" 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">
-
- AutoConnectElements
-
- </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--active md-nav__item--nested">
-
- <input class="md-nav__toggle md-toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" checked>
- <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 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">
- AutoConnectElements
- <span class="md-nav__icon md-icon"></span>
- </label>
-
- <a href="acelements.html" class="md-nav__link md-nav__link--active">
- AutoConnectElements
- </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="#the-elements-for-the-custom-web-pages" class="md-nav__link">
- The elements for the custom Web pages
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#layout-on-a-custom-web-page" class="md-nav__link">
- Layout on a custom Web page
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#custom-css-for-a-custom-web-page" class="md-nav__link">
- Custom CSS for a custom Web page
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#form-and-autoconnectelements" class="md-nav__link">
- Form and AutoConnectElements
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectelement-a-basic-class-of-elements" class="md-nav__link">
- AutoConnectElement - A basic class of elements
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectElement - A basic class of elements">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post" class="md-nav__link">
- post
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#type" class="md-nav__link">
- type
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectbutton" class="md-nav__link">
- AutoConnectButton
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectButton">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_1" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_1" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_1" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#action" class="md-nav__link">
- action
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_1" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectcheckbox" class="md-nav__link">
- AutoConnectCheckbox
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectCheckbox">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_2" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_2" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_2" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#label" class="md-nav__link">
- label
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#checked" class="md-nav__link">
- checked
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#labelposition" class="md-nav__link">
- labelPosition
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_2" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectfile" class="md-nav__link">
- AutoConnectFile
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectFile">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_3" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_3" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_3" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#label_1" class="md-nav__link">
- label
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#store" class="md-nav__link">
- store
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_3" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectinput" class="md-nav__link">
- AutoConnectInput
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectInput">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_4" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_4" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_4" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#label_2" class="md-nav__link">
- label
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#pattern" class="md-nav__link">
- pattern
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#placeholder" class="md-nav__link">
- placeholder
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_4" class="md-nav__link">
- post
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#apply" class="md-nav__link">
- apply
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectradio" class="md-nav__link">
- AutoConnectRadio
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectRadio">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_5" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_5" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#values" class="md-nav__link">
- values
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#label_3" class="md-nav__link">
- label
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#order" class="md-nav__link">
- order
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#checked_1" class="md-nav__link">
- checked
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_5" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectstyle" class="md-nav__link">
- AutoConnectStyle
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectStyle">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_6" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_6" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_5" class="md-nav__link">
- value
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectselect" class="md-nav__link">
- AutoConnectSelect
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectSelect">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_7" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_7" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#options" class="md-nav__link">
- options
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#label_4" class="md-nav__link">
- label
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#selected" class="md-nav__link">
- selected
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_6" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectsubmit" class="md-nav__link">
- AutoConnectSubmit
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectSubmit">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_8" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_8" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_6" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#uri" class="md-nav__link">
- uri
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_7" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnecttext" class="md-nav__link">
- AutoConnectText
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectText">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_9" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_9" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_7" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#style" class="md-nav__link">
- style
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#format" class="md-nav__link">
- format
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_8" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-to-coding-for-the-elements" class="md-nav__link">
- How to coding for the elements
- </a>
-
- <nav class="md-nav" aria-label="How to coding for the elements">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#declaration-for-the-elements-in-sketches" class="md-nav__link">
- Declaration for the elements in Sketches
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#variant-for-autoconnectelements" class="md-nav__link">
- Variant for AutoConnectElements
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- </ul>
-
- </nav>
-
- </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">
- <a href="faq.html" class="md-nav__link">
- FAQ
- </a>
- </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="#the-elements-for-the-custom-web-pages" class="md-nav__link">
- The elements for the custom Web pages
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#layout-on-a-custom-web-page" class="md-nav__link">
- Layout on a custom Web page
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#custom-css-for-a-custom-web-page" class="md-nav__link">
- Custom CSS for a custom Web page
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#form-and-autoconnectelements" class="md-nav__link">
- Form and AutoConnectElements
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectelement-a-basic-class-of-elements" class="md-nav__link">
- AutoConnectElement - A basic class of elements
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectElement - A basic class of elements">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post" class="md-nav__link">
- post
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#type" class="md-nav__link">
- type
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectbutton" class="md-nav__link">
- AutoConnectButton
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectButton">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_1" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_1" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_1" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#action" class="md-nav__link">
- action
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_1" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectcheckbox" class="md-nav__link">
- AutoConnectCheckbox
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectCheckbox">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_2" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_2" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_2" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#label" class="md-nav__link">
- label
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#checked" class="md-nav__link">
- checked
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#labelposition" class="md-nav__link">
- labelPosition
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_2" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectfile" class="md-nav__link">
- AutoConnectFile
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectFile">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_3" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_3" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_3" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#label_1" class="md-nav__link">
- label
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#store" class="md-nav__link">
- store
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_3" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectinput" class="md-nav__link">
- AutoConnectInput
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectInput">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_4" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_4" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_4" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#label_2" class="md-nav__link">
- label
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#pattern" class="md-nav__link">
- pattern
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#placeholder" class="md-nav__link">
- placeholder
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_4" class="md-nav__link">
- post
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#apply" class="md-nav__link">
- apply
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectradio" class="md-nav__link">
- AutoConnectRadio
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectRadio">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_5" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_5" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#values" class="md-nav__link">
- values
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#label_3" class="md-nav__link">
- label
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#order" class="md-nav__link">
- order
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#checked_1" class="md-nav__link">
- checked
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_5" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectstyle" class="md-nav__link">
- AutoConnectStyle
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectStyle">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_6" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_6" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_5" class="md-nav__link">
- value
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectselect" class="md-nav__link">
- AutoConnectSelect
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectSelect">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_7" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_7" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#options" class="md-nav__link">
- options
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#label_4" class="md-nav__link">
- label
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#selected" class="md-nav__link">
- selected
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_6" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnectsubmit" class="md-nav__link">
- AutoConnectSubmit
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectSubmit">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_8" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_8" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_6" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#uri" class="md-nav__link">
- uri
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_7" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#autoconnecttext" class="md-nav__link">
- AutoConnectText
- </a>
-
- <nav class="md-nav" aria-label="AutoConnectText">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#constructor_9" class="md-nav__link">
- Constructor
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#name_9" class="md-nav__link">
- name
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#value_7" class="md-nav__link">
- value
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#style" class="md-nav__link">
- style
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#format" class="md-nav__link">
- format
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#post_8" class="md-nav__link">
- post
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#how-to-coding-for-the-elements" class="md-nav__link">
- How to coding for the elements
- </a>
-
- <nav class="md-nav" aria-label="How to coding for the elements">
- <ul class="md-nav__list">
-
- <li class="md-nav__item">
- <a href="#declaration-for-the-elements-in-sketches" class="md-nav__link">
- Declaration for the elements in Sketches
- </a>
-
- </li>
-
- <li class="md-nav__item">
- <a href="#variant-for-autoconnectelements" class="md-nav__link">
- Variant for AutoConnectElements
- </a>
-
- </li>
-
- </ul>
- </nav>
-
- </li>
-
- </ul>
-
- </nav>
- </div>
- </div>
- </div>
-
-
- <div class="md-content">
- <article class="md-content__inner md-typeset">
-
-
-
- <h1>AutoConnectElements</h1>
-
- <h2 id="the-elements-for-the-custom-web-pages">The elements for the custom Web pages<a class="headerlink" href="#the-elements-for-the-custom-web-pages" title="Permanent link">¶</a></h2>
- <p>Representative HTML elements for making the custom Web page are provided as AutoConnectElements.</p>
- <ul>
- <li><a href="#autoconnectbutton">AutoConnectButton</a>: Labeled action button</li>
- <li><a href="#autoconnectcheckbox">AutoConnectCheckbox</a>: Labeled checkbox</li>
- <li><a href="#autoconnectelement-a-basic-class-of-elements">AutoConnectElement</a>: General tag</li>
- <li><a href="#autoconnectfile">AutoConnectFile</a>: File uploader</li>
- <li><a href="#autoconnectinput">AutoConnectInput</a>: Labeled text input box</li>
- <li><a href="#autoconnectradio">AutoConnectRadio</a>: Labeled radio button</li>
- <li><a href="#autoconnectselect">AutoConnectSelect</a>: Selection list</li>
- <li><a href="#autoconnectstyle">AutoConnectStyle</a>: Custom CSS code</li>
- <li><a href="#autoconnectsubmit">AutoConnectSubmit</a>: Submit button</li>
- <li><a href="#autoconnecttext">AutoConnectText</a>: Style attributed text</li>
- </ul>
- <h2 id="layout-on-a-custom-web-page">Layout on a custom Web page<a class="headerlink" href="#layout-on-a-custom-web-page" title="Permanent link">¶</a></h2>
- <p>AutoConnect will not actively be involved in the layout of custom Web pages generated from AutoConnectElements. However, each element has <a href="#post">an attribute to arrange placement</a> on a custom web page by horizontally or vertically.</p>
- <h2 id="custom-css-for-a-custom-web-page">Custom CSS for a custom Web page<a class="headerlink" href="#custom-css-for-a-custom-web-page" title="Permanent link">¶</a></h2>
- <p>All custom Web page styles are limited to the built-in unique CSS embedded in the library code. Direct modification of the CSS affects AutoConnect behavior. You can use dedicated elements to relatively safely modify the style of your custom Web page.
- The <a href="#autoconnectstyle">AutoConnectStyle</a> will insert the raw CSS code into the style block in HTML of the custom Web page.</p>
- <h2 id="form-and-autoconnectelements">Form and AutoConnectElements<a class="headerlink" href="#form-and-autoconnectelements" title="Permanent link">¶</a></h2>
- <p>All AutoConnectElements placed on custom web pages will be contained into one form. Its form is fixed and created by AutoConnect. The form value (usually the text or checkbox you entered) is sent by <a href="#autoconnectsubmit">AutoConnectSubmit</a> using the <strong>POST</strong> method with HTTP. The post method sends the actual form data which is a query string whose contents are the <strong>name</strong> and <strong>value</strong> of AutoConnectElements. You can retrieve the value for the parameter with the Sketch from the query string with <a href="https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer#getting-information-about-request-arguments">ESP8266WebServer::arg</a> function or <a href="https://github.com/Hieromon/PageBuilder#arguments-of-invoked-user-function">PageArgument</a> class of the <a href="api.html#on">AutoConnect::on</a> handler when the form is submitted.</p>
- <h2 id="autoconnectelement-a-basic-class-of-elements">AutoConnectElement - <small>A basic class of elements</small><a class="headerlink" href="#autoconnectelement-a-basic-class-of-elements" title="Permanent link">¶</a></h2>
- <p>AutoConnectElement is a base class for other element classes and has common attributes for all elements. It can also be used as a <a href="#variant-for-autoconnectelements">variant</a> of each element. The following items are attributes that AutoConnectElement has and are common to other elements.</p>
- <p><i class="fa fa-eye"></i> <strong>Sample</strong><br>
- <small><strong><code>AutoConnectElement element("element", "<hr>");</code></strong></small></p>
- <p><small>On the page:</small><br><img src="images/acelement.png"></p>
- <h3 id="constructor"><i class="fa fa-edit"></i> Constructor<a class="headerlink" href="#constructor" title="Permanent link">¶</a></h3>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectElement(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">name,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">value,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACPosterior_t</span> <span style="color: #f8f8f2">post)</span>
- </code></pre></div>
- <h3 id="name"><i class="fa fa-caret-right"></i> name<a class="headerlink" href="#name" title="Permanent link">¶</a></h3>
- <p>Each element has a name. The <strong>name</strong> is the String data type. You can identify each element by the name to access it with sketches. </p>
- <h3 id="value"><i class="fa fa-caret-right"></i> value<a class="headerlink" href="#value" title="Permanent link">¶</a></h3>
- <p>The <strong>value</strong> is the string which is a source to generate an HTML code. Characteristics of Value vary depending on the element. The value of AutoConnectElement is native HTML code. A string of value is output as HTML as it is.</p>
- <h3 id="post"><i class="fa fa-caret-right"></i> post<a class="headerlink" href="#post" title="Permanent link">¶</a></h3>
- <p>The <strong>post</strong> specifies a tag to add behind the HTML code generated from the element. Its purpose is to place elements on the custom Web page as intended by the user sketch.
- AutoConnect will not actively be involved in the layout of custom Web pages generated from AutoConnectElements. Each element follows behind the previous one, with the exception of some elements. You can use the <strong>post</strong> value to arrange vertically or horizontal when the elements do not have the intended position on the custom Web Page specifying the following enumeration value as <strong>ACPosterior_t</strong> type for the <strong>post</strong>.</p>
- <ul>
- <li><strong><code>AC_Tag_None</code></strong> : No generate additional tags.</li>
- <li><strong><code>AC_Tag_BR</code></strong> : Add a <code><br></code> tag to the end of the element.</li>
- <li><strong><code>AC_Tag_P</code></strong> : Include the element in the <code><p> ~ </p></code> tag.</li>
- </ul>
- <p>The default interpretation of the post value is specific to each element.</p>
- <table>
- <thead>
- <tr>
- <th>AutoConnectElements</th>
- <th>Default interpretation of the post value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>AutoConnectElement</td>
- <td>AC_Tag_None</td>
- </tr>
- <tr>
- <td>AutoConnectButton</td>
- <td>AC_Tag_None</td>
- </tr>
- <tr>
- <td>AutoConnectCheckBox</td>
- <td>AC_Tag_BR</td>
- </tr>
- <tr>
- <td>AutoConnectFile</td>
- <td>AC_Tag_BR</td>
- </tr>
- <tr>
- <td>AutoConnectInput</td>
- <td>AC_Tag_BR</td>
- </tr>
- <tr>
- <td>AutoConnectRadio</td>
- <td>AC_Tag_BR</td>
- </tr>
- <tr>
- <td>AutoConnectSelect</td>
- <td>AC_Tag_BR</td>
- </tr>
- <tr>
- <td>AutoConnectSubmit</td>
- <td>AC_Tag_None</td>
- </tr>
- <tr>
- <td>AutoConnectText</td>
- <td>AC_Tag_None</td>
- </tr>
- </tbody>
- </table>
- <h3 id="type"><i class="fa fa-caret-right"></i> type<a class="headerlink" href="#type" title="Permanent link">¶</a></h3>
- <p>The <strong>type</strong> indicates the type of the element and represented as the <em>ACElement_t</em> enumeration type in the Sketch. Since AutoConnectElement also acts as a variant of other elements, it can be applied to handle elements collectively. At that time, the type can be referred to by the <a href="apielements.html#typeof"><strong>typeOf()</strong></a> function. The following example changes the font color of all <a href="#autoconnecttext">AutoConnectText</a> elements of a custom Web page to gray.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectAux</span> <span style="color: #f8f8f2">customPage;</span>
- <span style="color: #f8f8f2">AutoConnectElementVT</span><span style="color: #f92672">&</span> <span style="color: #f8f8f2">elements</span> <span style="color: #f92672">=</span> <span style="color: #f8f8f2">customPage.getElements();</span>
- <span style="color: #66d9ef">for</span> <span style="color: #f8f8f2">(AutoConnectElement</span><span style="color: #f92672">&</span> <span style="color: #f8f8f2">elm</span> <span style="color: #f8f8f2">:</span> <span style="color: #f8f8f2">elements)</span> <span style="color: #f8f8f2">{</span>
- <span style="background-color: #49483e"> <span style="color: #66d9ef">if</span> <span style="color: #f8f8f2">(elm.typeOf()</span> <span style="color: #f92672">==</span> <span style="color: #f8f8f2">AC_Text)</span> <span style="color: #f8f8f2">{</span>
- </span> <span style="color: #f8f8f2">AutoConnectText</span><span style="color: #f92672">&</span> <span style="color: #f8f8f2">text</span> <span style="color: #f92672">=</span> <span style="color: #66d9ef">reinterpret_cast</span><span style="color: #f92672"><</span><span style="color: #f8f8f2">AutoConnectText</span><span style="color: #f92672">&></span><span style="color: #f8f8f2">(elm);</span>
- <span style="color: #f8f8f2">text.style</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">"color:gray;"</span><span style="color: #f8f8f2">;</span>
- <span style="color: #f8f8f2">}</span>
- <span style="color: #f8f8f2">}</span>
- </code></pre></div>
- <p>The enumerators for <em>ACElement_t</em> are as follows:</p>
- <ul>
- <li>AutoConnectButton: <strong>AC_Button</strong></li>
- <li>AutoConnectCheckbox: <strong>AC_Checkbox</strong> </li>
- <li>AutoConnectElement: <strong>AC_Element</strong></li>
- <li>AutoConnectFile: <strong>AC_File</strong></li>
- <li>AutoConnectInput: <strong>AC_Input</strong></li>
- <li>AutoConnectRadio: <strong>AC_Radio</strong></li>
- <li>AutoConnectSelect: <strong>AC_Select</strong></li>
- <li>AutoConnectStyle: <strong>AC_Style</strong></li>
- <li>AutoConnectSubmit: <strong>AC_Submit</strong></li>
- <li>AutoConnectText: <strong>AC_Text</strong></li>
- <li>Uninitialized element: <strong>AC_Unknown</strong></li>
- </ul>
- <p>Furthermore, to convert an entity that is not an AutoConnectElement to its native type, you must <a href="https://en.cppreference.com/w/cpp/language/reinterpret_cast">re-interpret</a> that type with c++. Or, you can be coding the Sketch more easily with using the <a href="apielements.html#ast62"><strong>as<T></strong></a> function.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectAux</span> <span style="color: #f8f8f2">customPage;</span>
- <span style="color: #f8f8f2">AutoConnectElementVT</span><span style="color: #f92672">&</span> <span style="color: #f8f8f2">elements</span> <span style="color: #f92672">=</span> <span style="color: #f8f8f2">customPage.getElements();</span>
- <span style="color: #66d9ef">for</span> <span style="color: #f8f8f2">(AutoConnectElement</span><span style="color: #f92672">&</span> <span style="color: #f8f8f2">elm</span> <span style="color: #f8f8f2">:</span> <span style="color: #f8f8f2">elements)</span> <span style="color: #f8f8f2">{</span>
- <span style="color: #66d9ef">if</span> <span style="color: #f8f8f2">(elm.type()</span> <span style="color: #f92672">==</span> <span style="color: #f8f8f2">AC_Text)</span> <span style="color: #f8f8f2">{</span>
- <span style="background-color: #49483e"> <span style="color: #f8f8f2">AutoConnectText</span><span style="color: #f92672">&</span> <span style="color: #f8f8f2">text</span> <span style="color: #f92672">=</span> <span style="color: #f8f8f2">customPage[elm.name].as</span><span style="color: #f92672"><</span><span style="color: #f8f8f2">AutoConnectText</span><span style="color: #f92672">></span><span style="color: #f8f8f2">();</span>
- </span> <span style="color: #f8f8f2">text.style</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">"color:gray;"</span><span style="color: #f8f8f2">;</span>
- <span style="color: #75715e">// Or, it is also possible to write the code further reduced as follows.</span>
- <span style="color: #75715e">// customPage[elm.name].as<AutoConnectText>().style = "color:gray;";</span>
- <span style="color: #f8f8f2">}</span>
- <span style="color: #f8f8f2">}</span>
- </code></pre></div>
- <h2 id="autoconnectbutton">AutoConnectButton<a class="headerlink" href="#autoconnectbutton" title="Permanent link">¶</a></h2>
- <p>AutoConnectButton generates an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">button</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"button"</span><span style="color: #f8f8f2">></span></code> tag and locates a clickable button to a custom Web page. Currently AutoConnectButton corresponds only to name, value, an <em>onclick</em> attribute of HTML button tag. An <em>onclick</em> attribute is generated from an <code>action</code> member variable of the AutoConnectButton, which is mostly used with a JavaScript to activate a script.</p>
- <p><i class="fa fa-eye"></i> <strong>Sample</strong><br>
- <small><strong><code>AutoConnectButton button("button", "OK", "myFunction()");</code></strong></small></p>
- <p><small>On the page:</small><br><img src="images/acbutton.png"></p>
- <h3 id="constructor_1"><i class="fa fa-edit"></i> Constructor<a class="headerlink" href="#constructor_1" title="Permanent link">¶</a></h3>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectButton(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">name,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">value,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">String</span><span style="color: #f92672">&</span> <span style="color: #f8f8f2">action,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACPosterior_t</span> <span style="color: #f8f8f2">post)</span>
- </code></pre></div>
- <h3 id="name_1"><i class="fa fa-caret-right"></i> name<a class="headerlink" href="#name_1" title="Permanent link">¶</a></h3>
- <p>It is the <code>name</code> of the AutoConnectButton element and matches the name attribute of the button tag. It also becomes the parameter name of the query string when submitted.</p>
- <h3 id="value_1"><i class="fa fa-caret-right"></i> value<a class="headerlink" href="#value_1" title="Permanent link">¶</a></h3>
- <p>It becomes a value of the <code>value</code> attribute of an HTML button tag.</p>
- <h3 id="action"><i class="fa fa-caret-right"></i> action<a class="headerlink" href="#action" title="Permanent link">¶</a></h3>
- <p><strong>action</strong> is String data type and is an <em>onclick</em> attribute fire on a mouse click on the element. It is mostly used with a JavaScript to activate a script.<sup id="fnref:1"><a class="footnote-ref" href="#fn:1">1</a></sup> For example, the following code defines a custom Web page that copies a content of <code>Text1</code> to <code>Text2</code> by clicking <code>Button</code>.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">scCopyText</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">R"(</span>
- <span style="color: #e6db74"><script></span>
- <span style="background-color: #49483e"><span style="color: #e6db74">function CopyText() {</span>
- </span><span style="background-color: #49483e"><span style="color: #e6db74"> document.getElementById("Text2").value = document.getElementById("Text1").value;</span>
- </span><span style="background-color: #49483e"><span style="color: #e6db74">}</span>
- </span><span style="color: #e6db74"></script></span>
- <span style="color: #e6db74">)"</span><span style="color: #f8f8f2">;</span>
- <span style="color: #f8f8f2">ACInput(Text1,</span> <span style="color: #e6db74">"Text1"</span><span style="color: #f8f8f2">);</span>
- <span style="color: #f8f8f2">ACInput(Text2,</span> <span style="color: #e6db74">"Text2"</span><span style="color: #f8f8f2">);</span>
- <span style="background-color: #49483e"><span style="color: #f8f8f2">ACButton(Button,</span> <span style="color: #e6db74">"COPY"</span><span style="color: #f8f8f2">,</span> <span style="color: #e6db74">"CopyText()"</span><span style="color: #f8f8f2">);</span>
- </span><span style="color: #f8f8f2">ACElement(TextCopy,</span> <span style="color: #f8f8f2">scCopyText);</span>
- </code></pre></div>
- <h3 id="post_1"><i class="fa fa-caret-right"></i> post<a class="headerlink" href="#post_1" title="Permanent link">¶</a></h3>
- <p>Specifies a tag to add behind the HTML code generated from the element. The default values is <code>AC_Tag_None</code>.</p>
- <h2 id="autoconnectcheckbox">AutoConnectCheckbox<a class="headerlink" href="#autoconnectcheckbox" title="Permanent link">¶</a></h2>
- <p>AutoConnectCheckbox generates an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"checkbox"</span><span style="color: #f8f8f2">></span></code> tag and a <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">label</span><span style="color: #f8f8f2">></span></code> tag. It places horizontally on a custom Web page by default.</p>
- <p><i class="fa fa-eye"></i> <strong>Sample</strong><br>
- <small><strong><code>AutoConnectCheckbox checkbox("checkbox", "uniqueapid", "Use APID unique", false);</code></strong></small></p>
- <p><small>On the page:</small><br><img src="images/accheckbox.png"></p>
- <h3 id="constructor_2"><i class="fa fa-edit"></i> Constructor<a class="headerlink" href="#constructor_2" title="Permanent link">¶</a></h3>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectCheckbox(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">name,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">value,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">label,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">bool</span> <span style="color: #f8f8f2">checked,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACPosition_t</span> <span style="color: #f8f8f2">labelPosition,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACPosterior_t</span> <span style="color: #f8f8f2">post)</span>
- </code></pre></div>
- <h3 id="name_2"><i class="fa fa-caret-right"></i> name<a class="headerlink" href="#name_2" title="Permanent link">¶</a></h3>
- <p>It is the <code>name</code> of the AutoConnectCheckbox element and matches the name attribute of the input tag. It also becomes the parameter name of the query string when submitted.</p>
- <h3 id="value_2"><i class="fa fa-caret-right"></i> value<a class="headerlink" href="#value_2" title="Permanent link">¶</a></h3>
- <p>It becomes a value of the <code>value</code> attribute of an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"checkbox"</span><span style="color: #f8f8f2">></span></code> tag.</p>
- <h3 id="label"><i class="fa fa-caret-right"></i> label<a class="headerlink" href="#label" title="Permanent link">¶</a></h3>
- <p>A label is an optional string. A label is always arranged on the right side of the checkbox. Specification of a label will generate an HTML <code><label></code> tag with an <code>id</code> attribute. The checkbox and the label are connected by the id attribute.
- Only <i class="far fa-square"></i> will be displayed if a label is not specified.</p>
- <h3 id="checked"><i class="fa fa-caret-right"></i> checked<a class="headerlink" href="#checked" title="Permanent link">¶</a></h3>
- <p>A checked is a Boolean value and indicates the checked status of the checkbox. The value of the checked checkbox element is packed in the query string and sent.</p>
- <h3 id="labelposition"><i class="fa fa-caret-right"></i> labelPosition<a class="headerlink" href="#labelposition" title="Permanent link">¶</a></h3>
- <p>The position of the label belonging to the checkbox can be specified around the element. The labelPosition specifies the position of the label to generate with <strong>ACPostion_t</strong> enumeration value. The default value is <code>AC_Behind</code>.</p>
- <ul>
- <li><strong><code>AC_Infront</code></strong> : Place a label in front of the check box.</li>
- <li><strong><code>AC_Behind</code></strong> : Place a label behind the check box.</li>
- </ul>
- <h3 id="post_2"><i class="fa fa-caret-right"></i> post<a class="headerlink" href="#post_2" title="Permanent link">¶</a></h3>
- <p>Specifies a tag to add behind the HTML code generated from the element. The default values is <code>AC_Tag_BR</code>.</p>
- <h2 id="autoconnectfile">AutoConnectFile<a class="headerlink" href="#autoconnectfile" title="Permanent link">¶</a></h2>
- <p>AutoConnectFile generates an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"file"</span><span style="color: #f8f8f2">></span></code> tag and a <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">label</span><span style="color: #f8f8f2">></span></code> tag. AutoConnectFile enables file upload from the client through the web browser to ESP8266/ESP32 module. You can select the flash in the module, external SD device or any output destination as the storage of the uploaded file.</p>
- <p><i class="fa fa-eye"></i> <strong>Sample</strong><br>
- <small><strong><code>AutoConnectFile file("file", "", "Upload:", AC_File_FS)</code></strong></small></p>
- <p><small>On the page:</small><br><img src="images/acfile.png"></p>
- <h3 id="constructor_3"><i class="fa fa-edit"></i> Constructor<a class="headerlink" href="#constructor_3" title="Permanent link">¶</a></h3>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectFile(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">name,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">value,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">label,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACFile_t</span> <span style="color: #f8f8f2">store,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACPosterior_t</span> <span style="color: #f8f8f2">post)</span>
- </code></pre></div>
- <h3 id="name_3"><i class="fa fa-caret-right"></i> name<a class="headerlink" href="#name_3" title="Permanent link">¶</a></h3>
- <p>It is the <code>name</code> of the AutoConnectFile element and matches the name attribute of the input tag. It also becomes the parameter name of the query string when submitted.</p>
- <h3 id="value_3"><i class="fa fa-caret-right"></i> value<a class="headerlink" href="#value_3" title="Permanent link">¶</a></h3>
- <p>File name to be upload. The value contains the value entered by the client browser to the <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"file"</span><span style="color: #f8f8f2">></span></code> tag and is read-only. Even If you give a value to the constructor, it does not affect as an initial value like a default file name.</p>
- <h3 id="label_1"><i class="fa fa-caret-right"></i> label<a class="headerlink" href="#label_1" title="Permanent link">¶</a></h3>
- <p>A <code>label</code> is an optional string. A label is always arranged on the left side of the input box. Specification of a label will generate an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">label</span><span style="color: #f8f8f2">></span></code> tag with an id attribute. The input box and the label are connected by the id attribute.</p>
- <h3 id="store"><i class="fa fa-caret-right"></i> store<a class="headerlink" href="#store" title="Permanent link">¶</a></h3>
- <p>Specifies the destination to save the uploaded file. The destination can be specified the following values in the <em>ACFile_t</em> enumeration type.</p>
- <ul>
- <li><strong><code>AC_File_FS</code></strong> : Save as the SPIFFS file in flash of ESP8266/ESP32 module.</li>
- <li><strong><code>AC_File_SD</code></strong> : Save to an external SD device connected to ESP8266/ESP32 module.</li>
- <li><strong><code>AC_File_Extern</code></strong> : Pass the content of the uploaded file to the uploader which is declared by the Sketch individually. Its uploader must inherit <a href="acupload.html#to-upload-to-a-device-other-than-flash-or-sd"><strong>AutoConnectUploadHandler</strong></a> class and implements <em>_open</em>, <em>_write</em> and <em>_close</em> function.</li>
- </ul>
- <div class="admonition note">
- <p class="admonition-title">Built-in uploader is ready.</p>
- <p>AutoConnect already equips the built-in uploader for saving to the SPIFFS as AC_File_FS and the external SD as AC_File_SD. It is already implemented inside AutoConnect and will store uploaded file automatically.</p>
- </div>
- <h3 id="post_3"><i class="fa fa-caret-right"></i> post<a class="headerlink" href="#post_3" title="Permanent link">¶</a></h3>
- <p>Specifies a tag to add behind the HTML code generated from the element. The default values is <code>AC_Tag_BR</code>.</p>
- <h2 id="autoconnectinput">AutoConnectInput<a class="headerlink" href="#autoconnectinput" title="Permanent link">¶</a></h2>
- <p>AutoConnectInput generates an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"text"</span><span style="color: #f8f8f2">></span></code>, <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"number"</span><span style="color: #f8f8f2">></span></code> or <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"password"</span><span style="color: #f8f8f2">></span></code> tag and a <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">label</span><span style="color: #f8f8f2">></span></code> tag. It can also have a placeholder. The value of the input box is passed to the destination in the query string and can be retrieved programmatically. You can also update from the Sketches.</p>
- <p><i class="fa fa-eye"></i> <strong>Sample</strong><br>
- <small><strong><code>AutoConnectInput input("input", "", "Server", "MQTT broker server");</code></strong></small></p>
- <p><small>On the page:</small><br><img src="images/acinput.png"></p>
- <h3 id="constructor_4"><i class="fa fa-edit"></i> Constructor<a class="headerlink" href="#constructor_4" title="Permanent link">¶</a></h3>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectInput(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">name,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">value,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">label,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">pattern,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">placeholder,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACPosterior_t</span> <span style="color: #f8f8f2">post,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACInput_t</span> <span style="color: #f8f8f2">apply)</span>
- </code></pre></div>
- <h3 id="name_4"><i class="fa fa-caret-right"></i> name<a class="headerlink" href="#name_4" title="Permanent link">¶</a></h3>
- <p>It is the <code>name</code> of the AutoConnectInput element and matches the name attribute, the id attribute of the input tag. It also becomes the parameter name of the query string when submitted.</p>
- <h3 id="value_4"><i class="fa fa-caret-right"></i> value<a class="headerlink" href="#value_4" title="Permanent link">¶</a></h3>
- <p>It becomes a string value of the <code>value</code> attribute of an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"text"</span><span style="color: #f8f8f2">></span></code> tag. The text entered from the custom Web page will be grouped in the query string of the form submission and the string set before accessing the page will be displayed as the initial value.</p>
- <h3 id="label_2"><i class="fa fa-caret-right"></i> label<a class="headerlink" href="#label_2" title="Permanent link">¶</a></h3>
- <p>A <code>label</code> is an optional string. A label is always arranged on the left side of the input box. Specification of a label will generate an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">label</span><span style="color: #f8f8f2">></span></code> tag with an id attribute. The input box and the label are connected by the id attribute.</p>
- <h3 id="pattern"><i class="fa fa-caret-right"></i> pattern<a class="headerlink" href="#pattern" title="Permanent link">¶</a></h3>
- <p>A <code>pattern</code> specifies a <a href="https://www.w3schools.com/js/js_regexp.asp">regular expression</a> that the AutoConnectInput element's value is checked against on form submission. If it is invalid, the background color will change, but it will be sent even if the data format does not match. To check whether the entered value matches the pattern, use the <a href="apielements.html#isvalid">isValid</a> function.</p>
- <ul>
- <li>The password that must contain 8 or more characters that are of at least one number, and one uppercase and lowercase letter:<br><code>(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}</code></li>
- <li>
- <p>Email address as <em>characters@characters.domain</em>:<br><code>[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}</code></p>
- </li>
- <li>
- <p>IP address:<br><code>(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])</code></p>
- </li>
- <li>
- <p>Host name of Internet:<br><code>(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])</code></p>
- </li>
- <li>
- <p>Date (MM/DD/YYYY) as range 1900-2099:<br><code>(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d</code></p>
- </li>
- <li>
- <p>Twitter account:<br><code>^@?(\w){1,15}$</code></p>
- </li>
- </ul>
- <h3 id="placeholder"><i class="fa fa-caret-right"></i> placeholder<a class="headerlink" href="#placeholder" title="Permanent link">¶</a></h3>
- <p>A placeholder is an option string. Specification of a placeholder will generate a <code>placeholder</code> attribute for the input tag.</p>
- <h3 id="post_4"><i class="fa fa-caret-right"></i> post<a class="headerlink" href="#post_4" title="Permanent link">¶</a></h3>
- <p>Specifies a tag to add behind the HTML code generated from the element. The default values is <code>AC_Tag_BR</code>.</p>
- <h3 id="apply"><i class="fa fa-caret-right"></i> apply<a class="headerlink" href="#apply" title="Permanent link">¶</a></h3>
- <p>Specifies the type of input that the text box accepts. AutoConnectInput will generate either a <code>input type="text"</code>, <code>input type="password"</code>, or <code>input type="number"</code> tag based on the <code>apply</code> specifying as input type. The input type can be specified the following values in the <em>ACInput_t</em> enumeration type.</p>
- <ul>
- <li><strong><code>AC_Input_Text</code></strong> : <code>input type="text"</code></li>
- <li><strong><code>AC_Input_Password</code></strong> : <code>input type="password"</code></li>
- <li><strong><code>AC_Input_Number</code></strong> : <code>input type="number"</code></li>
- </ul>
- <h2 id="autoconnectradio">AutoConnectRadio<a class="headerlink" href="#autoconnectradio" title="Permanent link">¶</a></h2>
- <p>AutoConnectRadio generates few HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"radio"</span><span style="color: #f8f8f2">></span></code> tags as grouped and the same number of <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">label</span><span style="color: #f8f8f2">></span></code> tags. AutoConnectRadio can keep the value of a radio button as a collection. The grouped values will be placed in the custom Web page to select only one exclusively.</p>
- <p><i class="fa fa-eye"></i> <strong>Sample</strong><br>
- <small><strong><code>AutoConnectRadio radio("radio", { "30 sec.", "60 sec.", "180 sec." }, "Update period", AC_Vertical, 1);</code></strong></small></p>
- <p><small>On the page:</small><br><img src="images/acradio.png"></p>
- <h3 id="constructor_5"><i class="fa fa-edit"></i> Constructor<a class="headerlink" href="#constructor_5" title="Permanent link">¶</a></h3>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectRadio(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">name,</span> <span style="color: #f8f8f2">std</span><span style="color: #f92672">::</span><span style="color: #f8f8f2">vector</span><span style="color: #f92672"><</span><span style="color: #f8f8f2">String</span><span style="color: #f92672">></span> <span style="color: #66d9ef">const</span><span style="color: #f92672">&</span> <span style="color: #f8f8f2">values,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">label,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACArrange_t</span> <span style="color: #f8f8f2">order,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">uint8_t</span> <span style="color: #f8f8f2">checked,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACPosterior_t</span> <span style="color: #f8f8f2">post)</span>
- </code></pre></div>
- <h3 id="name_5"><i class="fa fa-caret-right"></i> name<a class="headerlink" href="#name_5" title="Permanent link">¶</a></h3>
- <p>It is the <code>name</code> of the AutoConnectRadio element and matches the name attribute of the input tags. It also becomes the parameter name of the query string when submitted.</p>
- <h3 id="values"><i class="fa fa-caret-right"></i> values<a class="headerlink" href="#values" title="Permanent link">¶</a></h3>
- <p>A <code>values</code> is an array of String type for the radio button options which as actually <a href="https://en.cppreference.com/w/cpp/container/vector">std::vector</a>. It is an initialization list can be used. The input tags will be generated from each entry in the values, the amount of which is the same as the number of items in <code>values</code>.</p>
- <h3 id="label_3"><i class="fa fa-caret-right"></i> label<a class="headerlink" href="#label_3" title="Permanent link">¶</a></h3>
- <p>A label is an optional string. A label will be arranged in the left or top of the radio buttons according to the <strong>order</strong>. Specification of a label will generate an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">label</span><span style="color: #f8f8f2">></span></code> tag with an <code>id</code> attribute. The radio buttons and the label are connected by the id attribute.</p>
- <h3 id="order"><i class="fa fa-caret-right"></i> order<a class="headerlink" href="#order" title="Permanent link">¶</a></h3>
- <p>A <code>order</code> specifies the direction to arrange the radio buttons. It is a value of type <code>ACArrange_t</code> and accepts one of the following:</p>
- <ul>
- <li><strong><code>AC_Horizontal</code></strong> : Horizontal arrangement.</li>
- <li><strong><code>AC_Vertical</code></strong> : Vertical arrangement.</li>
- </ul>
- <p>A label will place in the left or the top according to the <strong>order</strong>.</p>
- <h3 id="checked_1"><i class="fa fa-caret-right"></i> checked<a class="headerlink" href="#checked_1" title="Permanent link">¶</a></h3>
- <p>A <code>checked</code> specifies the index number (1-based) of the <strong>values</strong> to be checked. If this parameter is not specified neither item is checked.</p>
- <h3 id="post_5"><i class="fa fa-caret-right"></i> post<a class="headerlink" href="#post_5" title="Permanent link">¶</a></h3>
- <p>Specifies a tag to add behind the HTML code generated from the element. The default values is <code>AC_Tag_BR</code>.</p>
- <h2 id="autoconnectstyle">AutoConnectStyle<a class="headerlink" href="#autoconnectstyle" title="Permanent link">¶</a></h2>
- <p>AutoConnectStyle inserts the string given by the <strong>value</strong> into the style block of a custom Web page as it is raw.</p>
- <div class="admonition warning">
- <p class="admonition-title">The validity as CSS will not be checked</p>
- <p>AutoConnectStyle does not do syntax checking and semantic analysis of value. Insert the specified string into the style block of the custom Web page without processing it.
- Therefore, specifying the wrong CSS will modulate the behavior of the custom Web page.</p>
- </div>
- <h3 id="constructor_6"><i class="fa fa-code"></i> Constructor<a class="headerlink" href="#constructor_6" title="Permanent link">¶</a></h3>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectStyle(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">name,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">value)</span>
- </code></pre></div>
- <h3 id="name_6"><i class="fa fa-caret-right"></i> name<a class="headerlink" href="#name_6" title="Permanent link">¶</a></h3>
- <p>It is the <code>name</code> of the AutoConnectStyle element and is useful only to access this element from the Sketch. It does not affect the generated HTML code.</p>
- <h3 id="value_5"><i class="fa fa-caret-right"></i> value<a class="headerlink" href="#value_5" title="Permanent link">¶</a></h3>
- <p>The raw CSS code. It is not necessary to write <code><style></code> <code></style></code> tags.</p>
- <h2 id="autoconnectselect">AutoConnectSelect<a class="headerlink" href="#autoconnectselect" title="Permanent link">¶</a></h2>
- <p>AutoConnectSelect generates an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">select</span><span style="color: #f8f8f2">></span></code> tag (drop-down list) and few <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">option</span><span style="color: #f8f8f2">></span></code> tags.</p>
- <p><i class="fa fa-eye"></i> <strong>Sample</strong><br>
- <small><strong><code>AutoConnectSelect select("select", { String("Europe/London"), String("Europe/Berlin"), String("Europe/Helsinki"), String("Europe/Moscow"), String("Asia/Dubai") }, "Select TZ name");</code></strong></small></p>
- <p><small>On the page:</small><br><img src="images/acselect.png"></p>
- <h3 id="constructor_7"><i class="fa fa-edit"></i> Constructor<a class="headerlink" href="#constructor_7" title="Permanent link">¶</a></h3>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectSelect(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">name,</span> <span style="color: #f8f8f2">std</span><span style="color: #f92672">::</span><span style="color: #f8f8f2">vector</span><span style="color: #f92672"><</span><span style="color: #f8f8f2">String</span><span style="color: #f92672">></span> <span style="color: #66d9ef">const</span><span style="color: #f92672">&</span> <span style="color: #f8f8f2">options,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">label,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">uint8_t</span> <span style="color: #f8f8f2">selected,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACPosterior_t</span> <span style="color: #f8f8f2">post)</span>
- </code></pre></div>
- <h3 id="name_7"><i class="fa fa-caret-right"></i> name<a class="headerlink" href="#name_7" title="Permanent link">¶</a></h3>
- <p>It is the <code>name</code> of the AutoConnectSelect element and matches the name attribute of the select tags.</p>
- <h3 id="options"><i class="fa fa-caret-right"></i> options<a class="headerlink" href="#options" title="Permanent link">¶</a></h3>
- <p>An <code>options</code> is an array of String type for the options which as actually <a href="https://en.cppreference.com/w/cpp/container/vector">std::vector</a> for an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">option</span><span style="color: #f8f8f2">></span></code> tag. It is an initialization list can be used. The option tags will be generated from each entry in the options, the amount of which is the same as the number of items in an <code>options</code>.</p>
- <h3 id="label_4"><i class="fa fa-caret-right"></i> label<a class="headerlink" href="#label_4" title="Permanent link">¶</a></h3>
- <p>A <code>label</code> is an optional string. A label is always arranged on the left side of the drop-down list. Specification of a label will generate an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">label</span><span style="color: #f8f8f2">></span></code> tag with an id attribute. The select tag and the label are connected by the id attribute.</p>
- <h3 id="selected"><i class="fa fa-caret-right"></i> selected<a class="headerlink" href="#selected" title="Permanent link">¶</a></h3>
- <p>A <code>selected</code> is an optional value. Specifies that an option should be pre-selected when the page loads.</p>
- <h3 id="post_6"><i class="fa fa-caret-right"></i> post<a class="headerlink" href="#post_6" title="Permanent link">¶</a></h3>
- <p>Specifies a tag to add behind the HTML code generated from the element. The default values is <code>AC_Tag_BR</code>.</p>
- <h2 id="autoconnectsubmit">AutoConnectSubmit<a class="headerlink" href="#autoconnectsubmit" title="Permanent link">¶</a></h2>
- <p>AutoConnectSubmit generates an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"button"</span><span style="color: #f8f8f2">></span></code> tag attached <code class="highlight">onclick</code> attribute. The native code of the <code class="highlight">onclick</code> attribute is the submission of the form with the <strong>POST</strong> method.</p>
- <p><i class="fa fa-eye"></i> <strong>Sample</strong><br>
- <small><strong><code>AutoConnectSubmit submit("submit", "Save", "/mqtt_save");</code></strong></small></p>
- <p><small>On the page:</small><br><img src="images/acsubmit.png"></p>
- <h3 id="constructor_8"><i class="fa fa-edit"></i> Constructor<a class="headerlink" href="#constructor_8" title="Permanent link">¶</a></h3>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectSubmit(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">name,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">value,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">uri,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACPosterior_t</span> <span style="color: #f8f8f2">post)</span>
- </code></pre></div>
- <h3 id="name_8"><i class="fa fa-caret-right"></i> name<a class="headerlink" href="#name_8" title="Permanent link">¶</a></h3>
- <p>It is the <code>name</code> of the AutoConnectSubmit element and matches the name attribute of the input tag.</p>
- <h3 id="value_6"><i class="fa fa-caret-right"></i> value<a class="headerlink" href="#value_6" title="Permanent link">¶</a></h3>
- <p>It becomes a string of the <code>value</code> attribute of an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">input</span> <span style="color: #a6e22e">type</span><span style="color: #f92672">=</span><span style="color: #e6db74">"button"</span><span style="color: #f8f8f2">></span></code> tag. The <code>value</code> will be displayed as a label of the button.</p>
- <h3 id="uri"><i class="fa fa-caret-right"></i> uri<a class="headerlink" href="#uri" title="Permanent link">¶</a></h3>
- <p>A <code>uri</code> specifies the URI to send form data when the button declared by AutoConnectSubmit is clicked.</p>
- <p>The query string of the form data sent with AutoConnectSubmit contains the URI of the page. Its parameter name is <code>_acuri</code>. In Sketch, you can know the called URI by referring to the <code>_acuri</code> parameter with the destination page handler. The actual query string is as follows:</p>
- <p>_acuri=<strong>CALLER_URI</strong></p>
- <h3 id="post_7"><i class="fa fa-caret-right"></i> post<a class="headerlink" href="#post_7" title="Permanent link">¶</a></h3>
- <p>Specifies a tag to add behind the HTML code generated from the element. The default values is <code>AC_Tag_None</code>.</p>
- <h2 id="autoconnecttext">AutoConnectText<a class="headerlink" href="#autoconnecttext" title="Permanent link">¶</a></h2>
- <p>AutoConnectText generates an HTML <code class="highlight"><span style="color: #f8f8f2"><</span><span style="color: #f92672">div</span><span style="color: #f8f8f2">></span></code> tag. A <code class="highlight">style</code> attribute will be attached if a <a href="#style">style</a> parameter is passed.</p>
- <p><i class="fa fa-eye"></i> <strong>Sample</strong><br>
- <small><strong><code>AutoConnectText text("text", "Publishing the WiFi signal strength to MQTT channel. RSSI value of ESP8266 to the channel created on ThingSpeak", "font-family:serif;color:#4682b4;");</code></strong></small></p>
- <p><small>On the page:</small><br><img src="images/actext.png"></p>
- <h3 id="constructor_9"><i class="fa fa-edit"></i> Constructor<a class="headerlink" href="#constructor_9" title="Permanent link">¶</a></h3>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectText(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">name,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">value,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">style,</span> <span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">format,</span> <span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">ACPosterior_t</span> <span style="color: #f8f8f2">post)</span>
- </code></pre></div>
- <h3 id="name_9"><i class="fa fa-caret-right"></i> name<a class="headerlink" href="#name_9" title="Permanent link">¶</a></h3>
- <p>A <code>name</code> does not exist in the generated HTML. It provides only a means of accessing elements with the Sketches.</p>
- <h3 id="value_7"><i class="fa fa-caret-right"></i> value<a class="headerlink" href="#value_7" title="Permanent link">¶</a></h3>
- <p>It becomes content and also can contain the native HTML code, but remember that your written code is enclosed by the div tag.</p>
- <h3 id="style"><i class="fa fa-caret-right"></i> style<a class="headerlink" href="#style" title="Permanent link">¶</a></h3>
- <p>A <code>style</code> specifies the qualification style to give to the content and can use the style attribute format as it is.</p>
- <h3 id="format"><i class="fa fa-caret-right"></i> format<a class="headerlink" href="#format" title="Permanent link">¶</a></h3>
- <p>A <code>format</code> is a pointer to a null-terminated multi byte string specifying how to interpret the value. It specifies the conversion format when outputting values. The format string conforms to C-style printf library functions, but depends on the Espressif's SDK implementation. The conversion specification is valid only in <strong>%s</strong> format. (Left and Right justification, width are also valid.)</p>
- <h3 id="post_8"><i class="fa fa-caret-right"></i> post<a class="headerlink" href="#post_8" title="Permanent link">¶</a></h3>
- <p>Specifies a tag to add behind the HTML code generated from the element. The default values is <code>AC_Tag_None</code>.</p>
- <h2 id="how-to-coding-for-the-elements">How to coding for the elements<a class="headerlink" href="#how-to-coding-for-the-elements" title="Permanent link">¶</a></h2>
- <h3 id="declaration-for-the-elements-in-sketches"><i class="fa fa-edit"></i> Declaration for the elements in Sketches<a class="headerlink" href="#declaration-for-the-elements-in-sketches" title="Permanent link">¶</a></h3>
- <p>Variables of each AutoConnetElement can be declared with macros. By using the macros, you can treat element name that is String type as variable in sketches.<sup id="fnref:2"><a class="footnote-ref" href="#fn:2">2</a></sup></p>
- <p>ACElement ( <em>name</em> <small>[</small> , <em>value</em> <small>]</small> <small>[</small> , <small><strong>AC_Tag_None</strong></small> | <small><strong>AC_Tag_BR</strong></small> | <small><strong>AC_Tag_P</strong></small> <small>]</small> )</p>
- <p>ACButton ( <em>name</em> <small>[</small> , <em>value</em> <small>]</small> <small>[</small> , <em>action</em> <small>]</small> <small>[</small> , <small><strong>AC_Tag_None</strong></small> | <small><strong>AC_Tag_BR</strong></small> | <small><strong>AC_Tag_P</strong></small> <small>]</small> )</p>
- <p>ACCheckbox ( <em>name</em> <small>[</small> , <em>value</em> <small>]</small> <small>[</small> , <em>label</em> <small>]</small> <small>[</small> , <small><strong>true</strong></small> | <small><strong>false</strong></small> <small>]</small> <small>[</small> , <small><strong>AC_Infront</strong></small> | <small><strong>AC_Behind</strong></small> <small>]</small> <small>[</small> , <small><strong>AC_Tag_None</strong></small> | <small><strong>AC_Tag_BR</strong></small> | <small><strong>AC_Tag_P</strong></small> <small>]</small> )</p>
- <p>ACFile ( <em>name</em> <small>[</small> , <em>value</em> <small>]</small> <small>[</small> , <em>label</em> <small>]</small> <small>[</small> , <small><strong>AC_File_FS</strong></small> | <small><strong>AC_File_SD</strong></small> | <small><strong>AC_File_Extern</strong></small> <small>]</small> <small>[</small> , <small><strong>AC_Tag_None</strong></small> | <small><strong>AC_Tag_BR</strong></small> | <small><strong>AC_Tag_P</strong></small> <small>]</small> )</p>
- <p>ACInput ( <em>name</em> <small>[</small> , <em>value</em> <small>]</small> <small>[</small> , <em>label</em> <small>]</small> <small>[</small> , <em>pattern</em> <small>]</small> <small>[</small> , <em>placeholder</em> <small>]</small> <small>[</small> , <small><strong>AC_Tag_None</strong></small> | <small><strong>AC_Tag_BR</strong></small> | <small><strong>AC_Tag_P</strong></small> <small>]</small> <small>[</small> , <small><strong>AC_Input_Text</strong></small> | <small><strong>AC_Input_Password</strong></small> | <small><strong>AC_Input_Number</strong></small> <small>]</small>)</p>
- <p>ACRadio ( <em>name</em> <small>[</small> , <em>values</em> <small>]</small> <small>[</small> , <em>label</em> <small>]</small> <small>[</small> , <small><strong>AC_Horizontal</small></strong> | <small><strong>AC_Vertical</strong></small> <small>]</small> <small>[</small> , <em>checked</em> <small>]</small> <small>[</small> , <small><strong>AC_Tag_None</strong></small> | <small><strong>AC_Tag_BR</strong></small> | <small><strong>AC_Tag_P</strong></small> <small>]</small> )</p>
- <p>ACSelect ( <em>name</em> <small>[</small> , <em>options</em> <small>]</small> <small>[</small> , <em>label</em> <small>]</small> <small>[</small> , <small><strong>AC_Tag_None</strong></small> | <small><strong>AC_Tag_BR</strong></small> | <small><strong>AC_Tag_P</strong></small> <small>]</small> )</p>
- <p>ACStyle ( <em>name</em> <small>[</small> , <em>value</em> <small>]</small> )</p>
- <p>ACSubmit ( <em>name</em> <small>[</small> , <em>value</em> <small>]</small> <small>[</small> , <em>uri</em> <small>]</small> <small>[</small> , <small><strong>AC_Tag_None</strong></small> | <small><strong>AC_Tag_BR</strong></small> | <small><strong>AC_Tag_P</strong></small> <small>]</small> )</p>
- <p>ACText ( <em>name</em> <small>[</small> , <em>value</em> <small>]</small> <small>[</small> , <em>style</em> <small>]</small> <small>[</small> , <em>format</em> <small>]</small> <small>[</small> , <small><strong>AC_Tag_None</strong></small> | <small><strong>AC_Tag_BR</strong></small> | <small><strong>AC_Tag_P</strong></small> <small>]</small> )</p>
- <div class="admonition memo">
- <p class="admonition-title">Declaration macro usage</p>
- <p>For example, <em>AutoConnectText</em> can be declared using macros.
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectText</span> <span style="color: #f8f8f2">caption(</span><span style="color: #e6db74">"caption"</span><span style="color: #f8f8f2">,</span> <span style="color: #e6db74">"hello, world"</span><span style="color: #f8f8f2">,</span> <span style="color: #e6db74">"color:blue;"</span><span style="color: #f8f8f2">)</span>
- </code></pre></div>
- equals by using <em>ACText</em> macro.<br>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">ACText(caption,</span> <span style="color: #e6db74">"hello, world"</span><span style="color: #f8f8f2">,</span> <span style="color: #e6db74">"color:blue;"</span><span style="color: #f8f8f2">)</span>
- </code></pre></div></p>
- </div>
- <h3 id="variant-for-autoconnectelements"><i class="fa fa-edit"></i> Variant for AutoConnectElements<a class="headerlink" href="#variant-for-autoconnectelements" title="Permanent link">¶</a></h3>
- <p>Some AutoConnectAux APIs specify AutoConnectElements as an argument. There are also functions that return a pointer to AutoConnectElements. AutoConnectElement behaves as a variant type of each element class to make these interfaces a single. Use <a href="https://en.cppreference.com/w/cpp/language/reinterpret_cast">reinterpret_cast</a> to cast from a variant pointer to an Actual type pointer of AutoConnectElements.</p>
- <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectAux</span> <span style="color: #f8f8f2">aux;</span>
- <span style="color: #f8f8f2">ACText(Text1,</span> <span style="color: #e6db74">"hello, world"</span><span style="color: #f8f8f2">);</span>
- <span style="color: #f8f8f2">aux.add(Text1);</span>
- <span style="color: #f8f8f2">AutoConnectText</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">text_p</span> <span style="color: #f92672">=</span> <span style="color: #66d9ef">reinterpret_cast</span><span style="color: #f92672"><</span><span style="color: #f8f8f2">AutoConnectText</span><span style="color: #f92672">*></span><span style="color: #f8f8f2">(aux.getElement(</span><span style="color: #e6db74">"Text1"</span><span style="color: #f8f8f2">));</span>
- <span style="color: #f8f8f2">AutoConnectText</span><span style="color: #f92672">&</span> <span style="color: #f8f8f2">text</span> <span style="color: #f92672">=</span> <span style="color: #f8f8f2">aux.getElement</span><span style="color: #f92672"><</span><span style="color: #f8f8f2">AutoConnectText</span><span style="color: #f92672">></span><span style="color: #f8f8f2">(</span><span style="color: #e6db74">"Text1"</span><span style="color: #f8f8f2">);</span>
- </code></pre></div>
- <div class="footnote">
- <hr />
- <ol>
- <li id="fn:1">
- <p>JavaScript can be inserted into a custom Web page using AutoConnectElement. <a class="footnote-backref" href="#fnref:1" title="Jump back to footnote 1 in the text">↩</a></p>
- </li>
- <li id="fn:2">
- <p>The square brackets in the syntax are optional parameters, the stroke is a selection parameter, the bold fonts are literal. <a class="footnote-backref" href="#fnref:2" title="Jump back to footnote 2 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="acintro.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>
- Custom Web pages with AutoConnect
- </div>
- </div>
- </a>
-
-
- <a href="acjson.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>
- Custom Web pages with JSON
- </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>
|