Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more
Diff: doc/html/join_2example_8cpp-example.html
- Revision:
- 21:17bb3eddcbae
- Parent:
- 17:7268f365676b
- Child:
- 26:8067e3d463d3
--- a/doc/html/join_2example_8cpp-example.html Sat Aug 23 05:57:52 2014 -0700
+++ b/doc/html/join_2example_8cpp-example.html Tue Aug 26 16:38:19 2014 -0700
@@ -156,9 +156,6 @@
<div class="line"><span class="comment"> */</span></div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv)</div>
<div class="line">{</div>
-<div class="line"> <a name="a0"></a><a class="code" href="group__api__network__types.html#gab448e57fc1a5e21cbba0283fd1a35d99">NetworkStatus</a> networkStatus;</div>
-<div class="line"></div>
-<div class="line"></div>
<div class="line"> consoleSerial.baud(115200); <span class="comment">// console terminal to 115200 baud</span></div>
<div class="line"></div>
<div class="line"> <span class="comment">//-------------------------------------------------------------------------</span></div>
@@ -183,7 +180,7 @@
<div class="line"> printf(<span class="stringliteral">"Initializing WiConnect Library...\r\n"</span>);</div>
<div class="line"></div>
<div class="line"> <span class="comment">// Initialize communication with WiFi module</span></div>
-<div class="line"> <span class="keywordflow">if</span>(wiconnect.init(<span class="keyword">true</span>) != <a name="a1"></a><a class="code" href="group__api__core__types.html#gga325637ed501728bd6c8c7a7982b9ce05af0a2ad8af174aee6b52813d8528328e7">WICONNECT_SUCCESS</a>)</div>
+<div class="line"> <span class="keywordflow">if</span>(wiconnect.init(<span class="keyword">true</span>) != <a name="a0"></a><a class="code" href="group__api__core__types.html#gga325637ed501728bd6c8c7a7982b9ce05af0a2ad8af174aee6b52813d8528328e7">WICONNECT_SUCCESS</a>)</div>
<div class="line"> {</div>
<div class="line"> printf(<span class="stringliteral">"Failed to initialize communication with WiFi module!\r\n"</span></div>
<div class="line"> <span class="stringliteral">"Make sure the wires are connected correctly\r\n"</span>);</div>
@@ -207,11 +204,10 @@
<div class="line"> <span class="comment">// STEP 4: Done!</span></div>
<div class="line"> <span class="comment">//-------------------------------------------------------------------------</span></div>
<div class="line"></div>
+<div class="line"> printf(<span class="stringliteral">"IP Address: %s\r\n"</span>, wiconnect.getIpAddress());</div>
<div class="line"> printf(<span class="stringliteral">"Network join example has completed!\r\n"</span>);</div>
<div class="line"></div>
-<div class="line"> <span class="keywordflow">for</span>(;;); <span class="comment">// infinite loop</span></div>
-<div class="line"></div>
-<div class="line"> <span class="keywordflow">return</span> 0;</div>
+<div class="line"> <span class="keywordflow">while</span>(<span class="keyword">true</span>){} <span class="comment">// infinite loop</span></div>
<div class="line">}</div>
<div class="line"></div>
</div><!-- fragment --> </div><!-- contents -->
AMW006-A02