Host library for controlling a WiConnect enabled Wi-Fi module.
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:
- 17:7268f365676b
- Parent:
- 16:7f1d6d359787
- Child:
- 21:17bb3eddcbae
--- a/doc/html/join_2example_8cpp-example.html Wed Aug 13 04:41:04 2014 -0700 +++ b/doc/html/join_2example_8cpp-example.html Sat Aug 23 05:39:17 2014 -0700 @@ -106,7 +106,6 @@ <li>Instantiate the WiConnect Library</li> <li>Initiate Communication with WiFi Module</li> <li>Join a network using the specified parameters</li> -<li>Wait for the module to join</li> <li>That's it!</li> </ol> <div class="fragment"><div class="line"></div> @@ -198,7 +197,6 @@ <div class="line"></div> <div class="line"> printf(<span class="stringliteral">"Joining network: %s....\r\n"</span>, NETWORK_SSID);</div> <div class="line"></div> -<div class="line"> <span class="comment">// Initiate module join sequence</span></div> <div class="line"> <span class="keywordflow">if</span>(wiconnect.join(NETWORK_SSID, NETWORK_PASSWORD) != <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 send join command\r\n"</span>);</div> @@ -206,25 +204,7 @@ <div class="line"> }</div> <div class="line"></div> <div class="line"> <span class="comment">//-------------------------------------------------------------------------</span></div> -<div class="line"> <span class="comment">// STEP 4: Wait for the module to join the network</span></div> -<div class="line"> <span class="comment">//-------------------------------------------------------------------------</span></div> -<div class="line"></div> -<div class="line"> printf(<span class="stringliteral">"Waiting to join network....\r\n"</span>);</div> -<div class="line"></div> -<div class="line"> <span class="keywordflow">do</span></div> -<div class="line"> {</div> -<div class="line"> <span class="comment">// poll the module for the network status</span></div> -<div class="line"> <span class="keywordflow">if</span>(wiconnect.getNetworkStatus(&networkStatus) != <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 get network status\r\n"</span>);</div> -<div class="line"> <span class="keywordflow">for</span>(;;); <span class="comment">// infinite loop</span></div> -<div class="line"> }</div> -<div class="line"></div> -<div class="line"> <span class="comment">// loop until the network status is not down</span></div> -<div class="line"> } <span class="keywordflow">while</span>(networkStatus == <a name="a2"></a><a class="code" href="group__api__network__types.html#ggab448e57fc1a5e21cbba0283fd1a35d99a6a4dd5a93528f27eb983bf856b9f5067">NETWORK_STATUS_DOWN</a>);</div> -<div class="line"></div> -<div class="line"> <span class="comment">//-------------------------------------------------------------------------</span></div> -<div class="line"> <span class="comment">// STEP 5: Done!</span></div> +<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">"Network join example has completed!\r\n"</span>);</div>