credit.html 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440
  1. <!doctype html>
  2. <html lang="en" class="no-js">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <meta name="description" content="ESP8266/ESP32 WLAN configuration at run time with web interface">
  7. <link rel="canonical" href="https://Hieromon.github.io/AutoConnect/credit.html">
  8. <meta name="author" content="Hieromon Ikasamo">
  9. <link rel="shortcut icon" href="assets/images/favicon.png">
  10. <meta name="generator" content="mkdocs-1.1.2, mkdocs-material-6.1.6">
  11. <title>Saved credentials access - AutoConnect for ESP8266/ESP32</title>
  12. <link rel="stylesheet" href="assets/stylesheets/main.6910b76c.min.css">
  13. <link rel="stylesheet" href="assets/stylesheets/palette.196e0c26.min.css">
  14. <meta name="theme-color" content="#4051b5">
  15. <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
  16. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700%7CRoboto+Mono&display=fallback">
  17. <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>
  18. <link rel="stylesheet" href="css/paragraph.css">
  19. <link rel="stylesheet" href="css/extra.css">
  20. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
  21. <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>
  22. <script async src="https://www.google-analytics.com/analytics.js"></script>
  23. </head>
  24. <body dir="ltr" data-md-color-scheme="" data-md-color-primary="indigo" data-md-color-accent="indigo">
  25. <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
  26. <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
  27. <label class="md-overlay" for="__drawer"></label>
  28. <div data-md-component="skip">
  29. <a href="#saved-credentials-in-the-flash" class="md-skip">
  30. Skip to content
  31. </a>
  32. </div>
  33. <div data-md-component="announce">
  34. </div>
  35. <header class="md-header" data-md-component="header">
  36. <nav class="md-header-nav md-grid" aria-label="Header">
  37. <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">
  38. <img src="images/arduino-logo.svg" alt="logo">
  39. </a>
  40. <label class="md-header-nav__button md-icon" for="__drawer">
  41. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
  42. </label>
  43. <div class="md-header-nav__title" data-md-component="header-title">
  44. <div class="md-header-nav__ellipsis">
  45. <span class="md-header-nav__topic md-ellipsis">
  46. AutoConnect for ESP8266/ESP32
  47. </span>
  48. <span class="md-header-nav__topic md-ellipsis">
  49. Saved credentials access
  50. </span>
  51. </div>
  52. </div>
  53. <label class="md-header-nav__button md-icon" for="__search">
  54. <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>
  55. </label>
  56. <div class="md-search" data-md-component="search" role="dialog">
  57. <label class="md-search__overlay" for="__search"></label>
  58. <div class="md-search__inner" role="search">
  59. <form class="md-search__form" name="search">
  60. <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>
  61. <label class="md-search__icon md-icon" for="__search">
  62. <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>
  63. <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>
  64. </label>
  65. <button type="reset" class="md-search__icon md-icon" aria-label="Clear" data-md-component="search-reset" tabindex="-1">
  66. <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>
  67. </button>
  68. </form>
  69. <div class="md-search__output">
  70. <div class="md-search__scrollwrap" data-md-scrollfix>
  71. <div class="md-search-result" data-md-component="search-result">
  72. <div class="md-search-result__meta">
  73. Initializing search
  74. </div>
  75. <ol class="md-search-result__list"></ol>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="md-header-nav__source">
  82. <a href="https://github.com/Hieromon/AutoConnect" title="Go to repository" class="md-source">
  83. <div class="md-source__icon md-icon">
  84. <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>
  85. </div>
  86. <div class="md-source__repository">
  87. Hieromon/AutoConnect
  88. </div>
  89. </a>
  90. </div>
  91. </nav>
  92. </header>
  93. <div class="md-container" data-md-component="container">
  94. <main class="md-main" data-md-component="main">
  95. <div class="md-main__inner md-grid">
  96. <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
  97. <div class="md-sidebar__scrollwrap">
  98. <div class="md-sidebar__inner">
  99. <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
  100. <label class="md-nav__title" for="__drawer">
  101. <a href="https://Hieromon.github.io/AutoConnect/" title="AutoConnect for ESP8266/ESP32" class="md-nav__button md-logo" aria-label="AutoConnect for ESP8266/ESP32">
  102. <img src="images/arduino-logo.svg" alt="logo">
  103. </a>
  104. AutoConnect for ESP8266/ESP32
  105. </label>
  106. <div class="md-nav__source">
  107. <a href="https://github.com/Hieromon/AutoConnect" title="Go to repository" class="md-source">
  108. <div class="md-source__icon md-icon">
  109. <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>
  110. </div>
  111. <div class="md-source__repository">
  112. Hieromon/AutoConnect
  113. </div>
  114. </a>
  115. </div>
  116. <ul class="md-nav__list" data-md-scrollfix>
  117. <li class="md-nav__item">
  118. <a href="index.html" class="md-nav__link">
  119. Overview
  120. </a>
  121. </li>
  122. <li class="md-nav__item">
  123. <a href="gettingstarted.html" class="md-nav__link">
  124. Getting started
  125. </a>
  126. </li>
  127. <li class="md-nav__item">
  128. <a href="menu.html" class="md-nav__link">
  129. AutoConnect menu
  130. </a>
  131. </li>
  132. <li class="md-nav__item">
  133. <a href="basicusage.html" class="md-nav__link">
  134. Basic usage
  135. </a>
  136. </li>
  137. <li class="md-nav__item md-nav__item--nested">
  138. <input class="md-nav__toggle md-toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" >
  139. <label class="md-nav__link" for="nav-5">
  140. Advanced usage
  141. <span class="md-nav__icon md-icon"></span>
  142. </label>
  143. <nav class="md-nav" aria-label="Advanced usage" data-md-level="1">
  144. <label class="md-nav__title" for="nav-5">
  145. <span class="md-nav__icon md-icon"></span>
  146. Advanced usage
  147. </label>
  148. <ul class="md-nav__list" data-md-scrollfix>
  149. <li class="md-nav__item">
  150. <a href="advancedusage.html" class="md-nav__link">
  151. Advanced usage
  152. </a>
  153. </li>
  154. <li class="md-nav__item">
  155. <a href="adconnection.html" class="md-nav__link">
  156. AutoConnect WiFi connection control
  157. </a>
  158. </li>
  159. <li class="md-nav__item">
  160. <a href="adcpcontrol.html" class="md-nav__link">
  161. Captive portal control
  162. </a>
  163. </li>
  164. <li class="md-nav__item">
  165. <a href="adnetwork.html" class="md-nav__link">
  166. Settings and controls for network and WiFi
  167. </a>
  168. </li>
  169. <li class="md-nav__item">
  170. <a href="adauthentication.html" class="md-nav__link">
  171. Authentication settings
  172. </a>
  173. </li>
  174. <li class="md-nav__item">
  175. <a href="adcredential.html" class="md-nav__link">
  176. Credential accesses
  177. </a>
  178. </li>
  179. <li class="md-nav__item">
  180. <a href="adexterior.html" class="md-nav__link">
  181. Customizing page appearance
  182. </a>
  183. </li>
  184. <li class="md-nav__item">
  185. <a href="adothers.html" class="md-nav__link">
  186. Other operation settings and controls
  187. </a>
  188. </li>
  189. </ul>
  190. </nav>
  191. </li>
  192. <li class="md-nav__item md-nav__item--nested">
  193. <input class="md-nav__toggle md-toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" >
  194. <label class="md-nav__link" for="nav-6">
  195. Custom Web pages
  196. <span class="md-nav__icon md-icon"></span>
  197. </label>
  198. <nav class="md-nav" aria-label="Custom Web pages" data-md-level="1">
  199. <label class="md-nav__title" for="nav-6">
  200. <span class="md-nav__icon md-icon"></span>
  201. Custom Web pages
  202. </label>
  203. <ul class="md-nav__list" data-md-scrollfix>
  204. <li class="md-nav__item">
  205. <a href="acintro.html" class="md-nav__link">
  206. Custom Web pages with AutoConnect
  207. </a>
  208. </li>
  209. <li class="md-nav__item">
  210. <a href="acelements.html" class="md-nav__link">
  211. AutoConnectElements
  212. </a>
  213. </li>
  214. <li class="md-nav__item">
  215. <a href="acjson.html" class="md-nav__link">
  216. Custom Web pages with JSON
  217. </a>
  218. </li>
  219. <li class="md-nav__item">
  220. <a href="achandling.html" class="md-nav__link">
  221. Handling the custom Web pages
  222. </a>
  223. </li>
  224. </ul>
  225. </nav>
  226. </li>
  227. <li class="md-nav__item md-nav__item--nested">
  228. <input class="md-nav__toggle md-toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7" >
  229. <label class="md-nav__link" for="nav-7">
  230. OTA Updates
  231. <span class="md-nav__icon md-icon"></span>
  232. </label>
  233. <nav class="md-nav" aria-label="OTA Updates" data-md-level="1">
  234. <label class="md-nav__title" for="nav-7">
  235. <span class="md-nav__icon md-icon"></span>
  236. OTA Updates
  237. </label>
  238. <ul class="md-nav__list" data-md-scrollfix>
  239. <li class="md-nav__item">
  240. <a href="otaupdate.html" class="md-nav__link">
  241. OTA Updates
  242. </a>
  243. </li>
  244. <li class="md-nav__item">
  245. <a href="otabrowser.html" class="md-nav__link">
  246. Using Web Browser
  247. </a>
  248. </li>
  249. <li class="md-nav__item">
  250. <a href="otaserver.html" class="md-nav__link">
  251. Using Update Server
  252. </a>
  253. </li>
  254. </ul>
  255. </nav>
  256. </li>
  257. <li class="md-nav__item md-nav__item--nested">
  258. <input class="md-nav__toggle md-toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" >
  259. <label class="md-nav__link" for="nav-8">
  260. Library APIs
  261. <span class="md-nav__icon md-icon"></span>
  262. </label>
  263. <nav class="md-nav" aria-label="Library APIs" data-md-level="1">
  264. <label class="md-nav__title" for="nav-8">
  265. <span class="md-nav__icon md-icon"></span>
  266. Library APIs
  267. </label>
  268. <ul class="md-nav__list" data-md-scrollfix>
  269. <li class="md-nav__item">
  270. <a href="api.html" class="md-nav__link">
  271. AutoConnect API
  272. </a>
  273. </li>
  274. <li class="md-nav__item">
  275. <a href="apiaux.html" class="md-nav__link">
  276. AutoConnectAux API
  277. </a>
  278. </li>
  279. <li class="md-nav__item">
  280. <a href="apiconfig.html" class="md-nav__link">
  281. AutoConnectConfig API
  282. </a>
  283. </li>
  284. <li class="md-nav__item">
  285. <a href="apielements.html" class="md-nav__link">
  286. AutoConnectElements API
  287. </a>
  288. </li>
  289. <li class="md-nav__item">
  290. <a href="apiupdate.html" class="md-nav__link">
  291. AutoConnectUpdate API
  292. </a>
  293. </li>
  294. <li class="md-nav__item">
  295. <a href="apiextra.html" class="md-nav__link">
  296. Something extra
  297. </a>
  298. </li>
  299. </ul>
  300. </nav>
  301. </li>
  302. <li class="md-nav__item md-nav__item--nested">
  303. <input class="md-nav__toggle md-toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9" >
  304. <label class="md-nav__link" for="nav-9">
  305. Examples
  306. <span class="md-nav__icon md-icon"></span>
  307. </label>
  308. <nav class="md-nav" aria-label="Examples" data-md-level="1">
  309. <label class="md-nav__title" for="nav-9">
  310. <span class="md-nav__icon md-icon"></span>
  311. Examples
  312. </label>
  313. <ul class="md-nav__list" data-md-scrollfix>
  314. <li class="md-nav__item">
  315. <a href="howtoembed.html" class="md-nav__link">
  316. How to embed
  317. </a>
  318. </li>
  319. <li class="md-nav__item">
  320. <a href="datatips.html" class="md-nav__link">
  321. Tips for data conversion
  322. </a>
  323. </li>
  324. <li class="md-nav__item">
  325. <a href="menuize.html" class="md-nav__link">
  326. Attach the menus
  327. </a>
  328. </li>
  329. <li class="md-nav__item">
  330. <a href="wojson.html" class="md-nav__link">
  331. Custom Web pages w/o JSON
  332. </a>
  333. </li>
  334. </ul>
  335. </nav>
  336. </li>
  337. <li class="md-nav__item md-nav__item--active md-nav__item--nested">
  338. <input class="md-nav__toggle md-toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10" checked>
  339. <label class="md-nav__link" for="nav-10">
  340. Appendix
  341. <span class="md-nav__icon md-icon"></span>
  342. </label>
  343. <nav class="md-nav" aria-label="Appendix" data-md-level="1">
  344. <label class="md-nav__title" for="nav-10">
  345. <span class="md-nav__icon md-icon"></span>
  346. Appendix
  347. </label>
  348. <ul class="md-nav__list" data-md-scrollfix>
  349. <li class="md-nav__item">
  350. <a href="lsbegin.html" class="md-nav__link">
  351. Inside AutoConnect::begin
  352. </a>
  353. </li>
  354. <li class="md-nav__item md-nav__item--active">
  355. <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
  356. <label class="md-nav__link md-nav__link--active" for="__toc">
  357. Saved credentials access
  358. <span class="md-nav__icon md-icon"></span>
  359. </label>
  360. <a href="credit.html" class="md-nav__link md-nav__link--active">
  361. Saved credentials access
  362. </a>
  363. <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
  364. <label class="md-nav__title" for="__toc">
  365. <span class="md-nav__icon md-icon"></span>
  366. Table of contents
  367. </label>
  368. <ul class="md-nav__list" data-md-scrollfix>
  369. <li class="md-nav__item">
  370. <a href="#saved-credentials-in-the-flash" class="md-nav__link">
  371. Saved credentials in the flash
  372. </a>
  373. </li>
  374. <li class="md-nav__item">
  375. <a href="#credentials-storage-location" class="md-nav__link">
  376. Credentials storage location
  377. </a>
  378. </li>
  379. <li class="md-nav__item">
  380. <a href="#autoconnectcredential" class="md-nav__link">
  381. AutoConnectCredential
  382. </a>
  383. <nav class="md-nav" aria-label="AutoConnectCredential">
  384. <ul class="md-nav__list">
  385. <li class="md-nav__item">
  386. <a href="#include-header" class="md-nav__link">
  387. Include header
  388. </a>
  389. </li>
  390. <li class="md-nav__item">
  391. <a href="#constructors" class="md-nav__link">
  392. Constructors
  393. </a>
  394. </li>
  395. <li class="md-nav__item">
  396. <a href="#public-member-functions" class="md-nav__link">
  397. Public member functions
  398. </a>
  399. <nav class="md-nav" aria-label=" Public member functions">
  400. <ul class="md-nav__list">
  401. <li class="md-nav__item">
  402. <a href="#entries" class="md-nav__link">
  403. entries
  404. </a>
  405. </li>
  406. <li class="md-nav__item">
  407. <a href="#load" class="md-nav__link">
  408. load
  409. </a>
  410. </li>
  411. <li class="md-nav__item">
  412. <a href="#load_1" class="md-nav__link">
  413. load
  414. </a>
  415. </li>
  416. <li class="md-nav__item">
  417. <a href="#save" class="md-nav__link">
  418. save
  419. </a>
  420. </li>
  421. <li class="md-nav__item">
  422. <a href="#del" class="md-nav__link">
  423. del
  424. </a>
  425. </li>
  426. </ul>
  427. </nav>
  428. </li>
  429. </ul>
  430. </nav>
  431. </li>
  432. <li class="md-nav__item">
  433. <a href="#the-data-structures" class="md-nav__link">
  434. The data structures
  435. </a>
  436. <nav class="md-nav" aria-label="The data structures">
  437. <ul class="md-nav__list">
  438. <li class="md-nav__item">
  439. <a href="#station_config_t" class="md-nav__link">
  440. station_config_t
  441. </a>
  442. </li>
  443. <li class="md-nav__item">
  444. <a href="#the-credential-entry" class="md-nav__link">
  445. The credential entry
  446. </a>
  447. </li>
  448. </ul>
  449. </nav>
  450. </li>
  451. </ul>
  452. </nav>
  453. </li>
  454. <li class="md-nav__item">
  455. <a href="acupload.html" class="md-nav__link">
  456. File upload handler
  457. </a>
  458. </li>
  459. <li class="md-nav__item">
  460. <a href="colorized.html" class="md-nav__link">
  461. Custom colorized
  462. </a>
  463. </li>
  464. <li class="md-nav__item">
  465. <a href="changelabel.html" class="md-nav__link">
  466. Change label text
  467. </a>
  468. </li>
  469. </ul>
  470. </nav>
  471. </li>
  472. <li class="md-nav__item">
  473. <a href="faq.html" class="md-nav__link">
  474. FAQ
  475. </a>
  476. </li>
  477. <li class="md-nav__item">
  478. <a href="changelog.html" class="md-nav__link">
  479. Change log
  480. </a>
  481. </li>
  482. <li class="md-nav__item">
  483. <a href="license.html" class="md-nav__link">
  484. License
  485. </a>
  486. </li>
  487. </ul>
  488. </nav>
  489. </div>
  490. </div>
  491. </div>
  492. <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
  493. <div class="md-sidebar__scrollwrap">
  494. <div class="md-sidebar__inner">
  495. <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
  496. <label class="md-nav__title" for="__toc">
  497. <span class="md-nav__icon md-icon"></span>
  498. Table of contents
  499. </label>
  500. <ul class="md-nav__list" data-md-scrollfix>
  501. <li class="md-nav__item">
  502. <a href="#saved-credentials-in-the-flash" class="md-nav__link">
  503. Saved credentials in the flash
  504. </a>
  505. </li>
  506. <li class="md-nav__item">
  507. <a href="#credentials-storage-location" class="md-nav__link">
  508. Credentials storage location
  509. </a>
  510. </li>
  511. <li class="md-nav__item">
  512. <a href="#autoconnectcredential" class="md-nav__link">
  513. AutoConnectCredential
  514. </a>
  515. <nav class="md-nav" aria-label="AutoConnectCredential">
  516. <ul class="md-nav__list">
  517. <li class="md-nav__item">
  518. <a href="#include-header" class="md-nav__link">
  519. Include header
  520. </a>
  521. </li>
  522. <li class="md-nav__item">
  523. <a href="#constructors" class="md-nav__link">
  524. Constructors
  525. </a>
  526. </li>
  527. <li class="md-nav__item">
  528. <a href="#public-member-functions" class="md-nav__link">
  529. Public member functions
  530. </a>
  531. <nav class="md-nav" aria-label=" Public member functions">
  532. <ul class="md-nav__list">
  533. <li class="md-nav__item">
  534. <a href="#entries" class="md-nav__link">
  535. entries
  536. </a>
  537. </li>
  538. <li class="md-nav__item">
  539. <a href="#load" class="md-nav__link">
  540. load
  541. </a>
  542. </li>
  543. <li class="md-nav__item">
  544. <a href="#load_1" class="md-nav__link">
  545. load
  546. </a>
  547. </li>
  548. <li class="md-nav__item">
  549. <a href="#save" class="md-nav__link">
  550. save
  551. </a>
  552. </li>
  553. <li class="md-nav__item">
  554. <a href="#del" class="md-nav__link">
  555. del
  556. </a>
  557. </li>
  558. </ul>
  559. </nav>
  560. </li>
  561. </ul>
  562. </nav>
  563. </li>
  564. <li class="md-nav__item">
  565. <a href="#the-data-structures" class="md-nav__link">
  566. The data structures
  567. </a>
  568. <nav class="md-nav" aria-label="The data structures">
  569. <ul class="md-nav__list">
  570. <li class="md-nav__item">
  571. <a href="#station_config_t" class="md-nav__link">
  572. station_config_t
  573. </a>
  574. </li>
  575. <li class="md-nav__item">
  576. <a href="#the-credential-entry" class="md-nav__link">
  577. The credential entry
  578. </a>
  579. </li>
  580. </ul>
  581. </nav>
  582. </li>
  583. </ul>
  584. </nav>
  585. </div>
  586. </div>
  587. </div>
  588. <div class="md-content">
  589. <article class="md-content__inner md-typeset">
  590. <h1>Saved credentials access</h1>
  591. <h2 id="saved-credentials-in-the-flash">Saved credentials in the flash<a class="headerlink" href="#saved-credentials-in-the-flash" title="Permanent link">&para;</a></h2>
  592. <p>AutoConnect stores the credentials of the established WiFi connection in the flash memory of the ESP8266/ESP32 module and equips the class to access the credentials from the sketch. You can read, write, or erase the credentials using this class individually. It's the <a href="#autoconnectcredential"><strong>AutoConnectCredential</strong></a>, which provides the way of access to the credentials stored in flash.<sup id="fnref:1"><a class="footnote-ref" href="#fn:1">1</a></sup></p>
  593. <h2 id="credentials-storage-location">Credentials storage location<a class="headerlink" href="#credentials-storage-location" title="Permanent link">&para;</a></h2>
  594. <p>The location where AutoConnect saves credentials depends on the module type and the AutoConnect library version, also arduino-esp32 core version. In either case, the location is flash memory, but EEPROM and Preferences (in the nvs<sup id="fnref:2"><a class="footnote-ref" href="#fn:2">2</a></sup>) are used depending on the library versions.</p>
  595. <table>
  596. <tr>
  597. <th rowspan="2" style="vertical-align:bottom">AutoConnect</th>
  598. <th rowspan="2" style="vertical-align:bottom">Arduino core<br>for ESP8266</th>
  599. <th colspan="2" style="text-align:center;vertical-align:bottom">Arduino core for ESP32</th>
  600. </tr>
  601. <tr>
  602. <th style="text-align:center;vertical-align:bottom">1.0.2 earlier</td>
  603. <th style="text-align:center;vertical-align:bottom">1.0.3 later</td>
  604. </tr>
  605. <tr>
  606. <td>v0.9.12 earlier</td>
  607. <td rowspan="2" style="text-align:center;vertical-align:middle">EEPROM</td>
  608. <td>EEPROM (partition)</td>
  609. <td>Not supported</td>
  610. </tr>
  611. <tr>
  612. <td>v1.0.0 later</td>
  613. <td>Preferences (nvs)<p>(Can be used EEPROM with turning off AUTOCONNECT_USE_PREFERENCES macro)</p></td>
  614. <td>Preferences (nvs)</td>
  615. </tr>
  616. </table>
  617. <p>However, sketches do not need to know where to store credentials using the commonly accessible <a href="#AutoConnectCredential">AutoConnectCredential</a> API.</p>
  618. <p>If you are using an Arduino core for ESP32 1.0.2 earlier and need to use credentials in EEPROM for backward compatibility, turns off the <strong><code>AUTOCONNECT_USE_PREFERENCES</code></strong><sup id="fnref:3"><a class="footnote-ref" href="#fn:3">3</a></sup> macro definition in <code>AutoConnectCredentials.h</code> file. AutoConnect behaves assuming that credentials are stored in EEPROM if <code>AUTOCONNECT_USE_PREFERENCES</code> is not defined.</p>
  619. <h2 id="autoconnectcredential">AutoConnectCredential<a class="headerlink" href="#autoconnectcredential" title="Permanent link">&para;</a></h2>
  620. <h3 id="include-header"><i class="fa fa-code"></i> Include header<a class="headerlink" href="#include-header" title="Permanent link">&para;</a></h3>
  621. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #75715e">#include</span> <span style="color: #75715e">&lt;AutoConnectCredential.h&gt;</span>
  622. </code></pre></div>
  623. <h3 id="constructors"><i class="fa fa-code"></i> Constructors<a class="headerlink" href="#constructors" title="Permanent link">&para;</a></h3>
  624. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectCredential();</span>
  625. </code></pre></div>
  626. <p>AutoConnectCredential default constructor. The default offset value is 0. In ESP8266 or ESP32 with arduino core 1.0.2 earlier, if the offset value is 0, the credential area starts from the top of the EEPROM. If you use this area in a user sketch, AutoConnect may overwrite that data.</p>
  627. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">AutoConnectCredential(</span><span style="color: #66d9ef">uint16_t</span> <span style="color: #f8f8f2">offset);</span>
  628. </code></pre></div>
  629. <dl class="apidl">
  630. <dt><strong>Parameter</strong></dt>
  631. <dd><span class="apidef">offset</span><span class="apidesc">Species offset from the top of the EEPROM for the credential area together. The offset value is from 0 to the flash sector size. This parameter is ignored for AutoConnect v1.0.0 or later with arduino-esp32 core 1.0.3 or later.</span></dd>
  632. </dl>
  633. <h3 id="public-member-functions"><i class="fa fa-code"></i> Public member functions<a class="headerlink" href="#public-member-functions" title="Permanent link">&para;</a></h3>
  634. <h4 id="entries"><i class="fa fa-caret-right"></i> entries<a class="headerlink" href="#entries" title="Permanent link">&para;</a></h4>
  635. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #66d9ef">uint8_t</span> <span style="color: #f8f8f2">entries(</span><span style="color: #66d9ef">void</span><span style="color: #f8f8f2">)</span>
  636. </code></pre></div>
  637. <p>Returns number of entries as contained credentials.<dl class="apidl">
  638. <dt><strong>Return value</strong></dt>
  639. <dd>Number of entries as contained credentials.</dd></dl></p>
  640. <h4 id="load"><i class="fa fa-caret-right"></i> load<a class="headerlink" href="#load" title="Permanent link">&para;</a></h4>
  641. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #66d9ef">int8_t</span> <span style="color: #f8f8f2">load(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">ssid,</span> <span style="color: #f8f8f2">station_config_t</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">config)</span>
  642. </code></pre></div>
  643. <p>Load a credential entry and store to <strong>config</strong>.<dl class="apidl">
  644. <dt><strong>Parameters</strong></dt>
  645. <dd><span class="apidef">ssid</span><span class="apidesc">SSID to be loaded.</span></dd>
  646. <dd><span class="apidef">config</span><span class="apidesc">station_config_t</span></dd>
  647. <dt><strong>Return value</strong></dt>
  648. <dd>Save the specified SSID's credential entry to <code>station_config_t</code> pointed to by the parameter as <strong>config</strong>. -1 is returned if the SSID is not saved.</dd></dl></p>
  649. <h4 id="load_1"><i class="fa fa-caret-right"></i> load<a class="headerlink" href="#load_1" title="Permanent link">&para;</a></h4>
  650. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #66d9ef">bool</span> <span style="color: #f8f8f2">load(</span><span style="color: #66d9ef">int8_t</span> <span style="color: #f8f8f2">entry,</span> <span style="color: #f8f8f2">station_config_t</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">config)</span>
  651. </code></pre></div>
  652. <p>Load a credential entry and store to <strong>config</strong>.<dl class="apidl">
  653. <dt><strong>Parameters</strong></dt>
  654. <dd><span class="apidef">entry</span><span class="apidesc">Specifies the index number based 0 to be loaded.</span></dd>
  655. <dd><span class="apidef">config</span><span class="apidesc">station_config_t</span></dd>
  656. <dt><strong>Return value</strong></dt>
  657. <dd>Save the specified credential entry to <code>station_config_t</code> pointed to by the parameter as <strong>config</strong>. -1 is returned if specified number is not saved.</dd></dl></p>
  658. <h4 id="save"><i class="fa fa-caret-right"></i> save<a class="headerlink" href="#save" title="Permanent link">&para;</a></h4>
  659. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #66d9ef">bool</span> <span style="color: #f8f8f2">save(</span><span style="color: #66d9ef">const</span> <span style="color: #f8f8f2">station_config_t</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">config)</span>
  660. </code></pre></div>
  661. <p>Save a credential entry.<dl class="apidl">
  662. <dt><strong>Parameter</strong></dt>
  663. <dd><span class="apidef">config</span><span class="apidesc">station_config_t to be saved.</span></dd>
  664. <dt><strong>Return value</strong></dt>
  665. <dd><span class="apidef">true</span><span class="apidesc">Successfully saved.</span></dd>
  666. <dd><span class="apidef">false</span><span class="apidesc">Failed to save.</span></dd></dl></p>
  667. <h4 id="del"><i class="fa fa-caret-right"></i> del<a class="headerlink" href="#del" title="Permanent link">&para;</a></h4>
  668. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #66d9ef">bool</span> <span style="color: #f8f8f2">del(</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span> <span style="color: #f8f8f2">ssid)</span>
  669. </code></pre></div>
  670. <p>Delete a credential the specified SSID.<dl class="apidl">
  671. <dt><strong>Parameter</strong></dt>
  672. <dd><span class="apidef">ssid</span><span class="apidesc">SSID to be deleted.</span></dd>
  673. <dt><strong>Return value</strong></dt>
  674. <dd><span class="apidef">true</span><span class="apidesc">Successfully deleted.</span></dd>
  675. <dd><span class="apidef">false</span><span class="apidesc">Failed to delete.</span></dd></dl></p>
  676. <div class="admonition example">
  677. <p class="admonition-title">Clear saved credentials</p>
  678. <p>There is no particular API for batch clearing of all credential data stored by AutoConnect. It is necessary to prepare a sketch function that combines several AutoConnectCredential APIs to erase all saved credentials.
  679. The following function is an implementation example, and you can use it to achieve batch clearing.</p>
  680. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #66d9ef">void</span> <span style="color: #a6e22e">deleteAllCredentials</span><span style="color: #f8f8f2">(</span><span style="color: #66d9ef">void</span><span style="color: #f8f8f2">)</span> <span style="color: #f8f8f2">{</span>
  681. <span style="color: #f8f8f2">AutoConnectCredential</span> <span style="color: #f8f8f2">credential;</span>
  682. <span style="color: #f8f8f2">station_config_t</span> <span style="color: #f8f8f2">config;</span>
  683. <span style="color: #66d9ef">uint8_t</span> <span style="color: #f8f8f2">ent</span> <span style="color: #f92672">=</span> <span style="color: #f8f8f2">credential.entries();</span>
  684. <span style="color: #66d9ef">while</span> <span style="color: #f8f8f2">(ent</span><span style="color: #f92672">--</span><span style="color: #f8f8f2">)</span> <span style="color: #f8f8f2">{</span>
  685. <span style="color: #f8f8f2">credential.load(</span><span style="color: #ae81ff">0</span><span style="color: #f8f8f2">,</span> <span style="color: #f92672">&amp;</span><span style="color: #f8f8f2">config);</span>
  686. <span style="color: #f8f8f2">credential.del((</span><span style="color: #66d9ef">const</span> <span style="color: #66d9ef">char</span><span style="color: #f92672">*</span><span style="color: #f8f8f2">)</span><span style="color: #f92672">&amp;</span><span style="color: #f8f8f2">config.ssid[</span><span style="color: #ae81ff">0</span><span style="color: #f8f8f2">]);</span>
  687. <span style="color: #f8f8f2">}</span>
  688. <span style="color: #f8f8f2">}</span>
  689. </code></pre></div>
  690. </div>
  691. <h2 id="the-data-structures">The data structures<a class="headerlink" href="#the-data-structures" title="Permanent link">&para;</a></h2>
  692. <h3 id="station_config_t"><i class="fas fa-database"></i> station_config_t<a class="headerlink" href="#station_config_t" title="Permanent link">&para;</a></h3>
  693. <p>The saved credential structure is defined as <code>station_config_t</code> in the AcutoConnectCredential header file.</p>
  694. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #66d9ef">typedef</span> <span style="color: #66d9ef">struct</span> <span style="color: #f8f8f2">{</span>
  695. <span style="color: #66d9ef">uint8_t</span> <span style="color: #f8f8f2">ssid[</span><span style="color: #ae81ff">32</span><span style="color: #f8f8f2">];</span>
  696. <span style="color: #66d9ef">uint8_t</span> <span style="color: #f8f8f2">password[</span><span style="color: #ae81ff">64</span><span style="color: #f8f8f2">];</span>
  697. <span style="color: #66d9ef">uint8_t</span> <span style="color: #f8f8f2">bssid[</span><span style="color: #ae81ff">6</span><span style="color: #f8f8f2">];</span>
  698. <span style="color: #66d9ef">uint8_t</span> <span style="color: #f8f8f2">dhcp;</span> <span style="color: #75715e">/**&lt; 0:DHCP, 1:Static IP */</span>
  699. <span style="color: #66d9ef">union</span> <span style="color: #a6e22e">_config</span> <span style="color: #f8f8f2">{</span>
  700. <span style="color: #66d9ef">uint32_t</span> <span style="color: #f8f8f2">addr[</span><span style="color: #ae81ff">5</span><span style="color: #f8f8f2">];</span>
  701. <span style="color: #66d9ef">struct</span> <span style="color: #a6e22e">_sta</span> <span style="color: #f8f8f2">{</span>
  702. <span style="color: #66d9ef">uint32_t</span> <span style="color: #f8f8f2">ip;</span>
  703. <span style="color: #66d9ef">uint32_t</span> <span style="color: #f8f8f2">gateway;</span>
  704. <span style="color: #66d9ef">uint32_t</span> <span style="color: #f8f8f2">netmask;</span>
  705. <span style="color: #66d9ef">uint32_t</span> <span style="color: #f8f8f2">dns1;</span>
  706. <span style="color: #66d9ef">uint32_t</span> <span style="color: #f8f8f2">dns2;</span>
  707. <span style="color: #f8f8f2">}</span> <span style="color: #f8f8f2">sta;</span>
  708. <span style="color: #f8f8f2">}</span> <span style="color: #f8f8f2">config;</span>
  709. <span style="color: #f8f8f2">}</span> <span style="color: #f8f8f2">station_config_t;</span>
  710. </code></pre></div>
  711. <div class="admonition note">
  712. <p class="admonition-title">The byte size of <code>station_config_t</code> in program memory and stored credentials is different</p>
  713. <p>There is a gap byte for boundary alignment between the <code>dhcp</code> member and the static IP members of the above <code>station_config_t</code>. Its gap byte will be removed with saved credentials on the flash.</p>
  714. </div>
  715. <h3 id="the-credential-entry"><i class="fas fa-database"></i> The credential entry<a class="headerlink" href="#the-credential-entry" title="Permanent link">&para;</a></h3>
  716. <p>A data structure of the credential saving area in EEPROM as the below. <sup id="fnref:4"><a class="footnote-ref" href="#fn:4">4</a></sup></p>
  717. <table>
  718. <thead>
  719. <tr>
  720. <th>byte offset</th>
  721. <th>Length</th>
  722. <th>Value</th>
  723. </tr>
  724. </thead>
  725. <tbody>
  726. <tr>
  727. <td>0</td>
  728. <td>8</td>
  729. <td>AC_CREDT</td>
  730. </tr>
  731. <tr>
  732. <td>8</td>
  733. <td>1</td>
  734. <td>Number of contained entries (uint8_t)</td>
  735. </tr>
  736. <tr>
  737. <td>9</td>
  738. <td>2</td>
  739. <td>Container size, excluding size of AC_CREDT and size of the number of entries(width for uint16_t type).</td>
  740. </tr>
  741. <tr>
  742. <td>11</td>
  743. <td>variable</td>
  744. <td>SSID terminated by 0x00. Max length is 32 bytes.</td>
  745. </tr>
  746. <tr>
  747. <td>variable</td>
  748. <td>variable</td>
  749. <td>Password plain text terminated by 0x00. Max length is 64 bytes.</td>
  750. </tr>
  751. <tr>
  752. <td>variable</td>
  753. <td>6</td>
  754. <td>BSSID</td>
  755. </tr>
  756. <tr>
  757. <td>variable</td>
  758. <td>1</td>
  759. <td>Flag for DHCP or Static IP (0:DHCP, 1:Static IP)</td>
  760. </tr>
  761. <tr>
  762. <td><td colspan=3>The following IP address entries are stored only for static IPs.</td>
  763. <td></td>
  764. <td></td>
  765. </tr>
  766. <tr>
  767. <td>variable(1)</td>
  768. <td>4</td>
  769. <td>Station IP address (uint32_t)</td>
  770. </tr>
  771. <tr>
  772. <td>variable(5)</td>
  773. <td>4</td>
  774. <td>Gateway address (uint32_t)</td>
  775. </tr>
  776. <tr>
  777. <td>variable(9)</td>
  778. <td>4</td>
  779. <td>Netmask (uint32_t)</td>
  780. </tr>
  781. <tr>
  782. <td>variable(13)</td>
  783. <td>4</td>
  784. <td>Primary DNS address (uint32_t)</td>
  785. </tr>
  786. <tr>
  787. <td>variable(17)</td>
  788. <td>4</td>
  789. <td>Secondary DNS address (uint32_t)</td>
  790. </tr>
  791. <tr>
  792. <td>variable</td>
  793. <td>variable</td>
  794. <td>Contained the next entries. (Continuation SSID+Password+BSSID+DHCP flag+Static IPs(if exists))</td>
  795. </tr>
  796. <tr>
  797. <td>variable</td>
  798. <td>1</td>
  799. <td>0x00. End of container.</td>
  800. </tr>
  801. </tbody>
  802. </table>
  803. <div class="admonition note">
  804. <p class="admonition-title">AutoConnectCredential has changed</p>
  805. <p>It was lost AutoConnectCredential backward compatibility. Credentials saved by AutoConnect v1.0.3 (or earlier) will not work properly with AutoConnect v1.1.0. You need to erase the flash of the ESP module using the esptool before the sketch uploading.
  806. <div class="highlight" style="background: #272822"><pre style="line-height: 125%; margin: 0;"><span></span><code><span style="color: #f8f8f2">esptool</span> <span style="color: #f8f8f2">-c</span> <span style="color: #f8f8f2">esp8266</span> <span style="color: #f8f8f2">(or</span> <span style="color: #f8f8f2">esp32)</span> <span style="color: #f8f8f2">-p</span> <span style="color: #66d9ef">[COM_PORT]</span> <span style="color: #f8f8f2">erase_flash</span>
  807. </code></pre></div></p>
  808. </div>
  809. <div class="footnote">
  810. <hr />
  811. <ol>
  812. <li id="fn:1">
  813. <p>An example using AutoConnectCredential is provided as <a href="https://github.com/Hieromon/AutoConnect/blob/master/examples/Credential/Credential.ino">an example</a> of a library sketch to delete saved credentials.&#160;<a class="footnote-backref" href="#fnref:1" title="Jump back to footnote 1 in the text">&#8617;</a></p>
  814. </li>
  815. <li id="fn:2">
  816. <p>The namespace for Preferences used by AutoConnect is <strong>AC_CREDT</strong>.&#160;<a class="footnote-backref" href="#fnref:2" title="Jump back to footnote 2 in the text">&#8617;</a></p>
  817. </li>
  818. <li id="fn:3">
  819. <p>Available only for AutoConnect v1.0.0 and later.&#160;<a class="footnote-backref" href="#fnref:3" title="Jump back to footnote 3 in the text">&#8617;</a></p>
  820. </li>
  821. <li id="fn:4">
  822. <p>There may be 0xff as an invalid data in the credential saving area. The 0xff area would be reused.&#160;<a class="footnote-backref" href="#fnref:4" title="Jump back to footnote 4 in the text">&#8617;</a></p>
  823. </li>
  824. </ol>
  825. </div>
  826. </article>
  827. </div>
  828. </div>
  829. </main>
  830. <footer class="md-footer">
  831. <div class="md-footer-nav">
  832. <nav class="md-footer-nav__inner md-grid" aria-label="Footer">
  833. <a href="lsbegin.html" class="md-footer-nav__link md-footer-nav__link--prev" rel="prev">
  834. <div class="md-footer-nav__button md-icon">
  835. <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>
  836. </div>
  837. <div class="md-footer-nav__title">
  838. <div class="md-ellipsis">
  839. <span class="md-footer-nav__direction">
  840. Previous
  841. </span>
  842. Inside AutoConnect::begin
  843. </div>
  844. </div>
  845. </a>
  846. <a href="acupload.html" class="md-footer-nav__link md-footer-nav__link--next" rel="next">
  847. <div class="md-footer-nav__title">
  848. <div class="md-ellipsis">
  849. <span class="md-footer-nav__direction">
  850. Next
  851. </span>
  852. File upload handler
  853. </div>
  854. </div>
  855. <div class="md-footer-nav__button md-icon">
  856. <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>
  857. </div>
  858. </a>
  859. </nav>
  860. </div>
  861. <div class="md-footer-meta md-typeset">
  862. <div class="md-footer-meta__inner md-grid">
  863. <div class="md-footer-copyright">
  864. <div class="md-footer-copyright__highlight">
  865. Copyright &copy; 2018-2020 Hieromon Ikasamo
  866. </div>
  867. Made with
  868. <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
  869. Material for MkDocs
  870. </a>
  871. </div>
  872. <div class="md-footer-social">
  873. <a href="https://github.com/Hieromon" target="_blank" rel="noopener" title="github.com" class="md-footer-social__link">
  874. <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>
  875. </a>
  876. <a href="https://twitter.com/hieromon" target="_blank" rel="noopener" title="twitter.com" class="md-footer-social__link">
  877. <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>
  878. </a>
  879. </div>
  880. </div>
  881. </div>
  882. </footer>
  883. </div>
  884. <script src="assets/javascripts/vendor.fd16492e.min.js"></script>
  885. <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>
  886. <script>
  887. app = initialize({
  888. base: ".",
  889. features: [],
  890. search: Object.assign({
  891. worker: "assets/javascripts/worker/search.4ac00218.min.js"
  892. }, typeof search !== "undefined" && search)
  893. })
  894. </script>
  895. <script src="js/gifffer.min.js"></script>
  896. </body>
  897. </html>