lass="keywordtype">bool</span> checkWiFi()</div>
<div class="line">{</div>
<div class="line">  wifiConnected = tryToConnect();</div>
<div class="line">  <span class="keywordflow">if</span> (!wifiConnected) {</div>
<div class="line"> </div>
<div class="line">    <span class="comment">// configure WiFi?</span></div>
<div class="line">    <span class="keywordflow">if</span> (ibox.message(<span class="stringliteral">&quot;WiFi Configuration&quot;</span>, <span class="stringliteral">&quot;Configure WiFi?&quot;</