lass="line"><span class="keywordtype">bool</span> tryToConnect()</div>
<div class="line">{</div>
<div class="line">  <span class="keywordtype">bool</span> connected = WiFi.status() == WL_CONNECTED;</div>
<div class="line">  <span class="keywordflow">if</span> (!connected) {</div>
<div class="line">    <span class="keywordtype">char</span> SSID[32] = <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line">    <span class="keywordtype">char</span> psw[32]  = <span class="stringliteral">&quot;