
A quick example of a simple WiFi application using the WiFi and network-socket APIs that is provided as a part of mbed-os.
Dependencies: WizFi310Interface_Draft
Fork of mbed-os-example-mbed5-wifi by
Revision 36:aa0b6789bbd2, committed 2017-09-27
- Comitter:
- mbed_official
- Date:
- Wed Sep 27 11:15:04 2017 +0100
- Parent:
- 35:052c1ba06ce7
- Child:
- 37:3a31525e2971
- Commit message:
- Update README to include info on successful connection (#62)
* Updated documentation README.MD
I updated the documentation to include instructions on how to see a successful WiFi connection for verification.
* Minor copy edits
Fixed typos and markdown.
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-wifi
Changed in this revision
README.md | Show annotated file Show diff for this revision Revisions of this file |
--- a/README.md Tue Sep 26 11:45:04 2017 +0100 +++ b/README.md Wed Sep 27 11:15:04 2017 +0100 @@ -71,6 +71,38 @@ ``` mbed compile -t GCC_ARM -m UBLOX_EVK_ODIN_W2 ``` + + 5. Open a serial console session with the target platform using the following parameters: + * **Baud rate:** 9600 + * **Data bits:** 8 + * **Stop bits:** 1 + * **Parity:** None + + 6. Copy or drag the application `mbed-os-example-wifi.bin` in the folder `mbed-os-example-wifi/BUILD/<TARGET NAME>/<PLATFORM NAME>` onto the target board. + + 7. The serial console should display a similar output to below, indicating a successful WiFi connection: + ``` + WiFi example + +Scan: +Network: Dave Hot Spot secured: Unknown BSSID: 00:01:02:03:04:05 RSSI: -58 Ch: 1 +1 network available. + +Connecting... +Success + +MAC: 00:01:02:03:04:05 +IP: 192.168.0.5 +Netmask: 255.255.255.0 +Gateway: 192.168.0.1 +RSSI: -27 + +Sending HTTP request to www.arm.com... +sent 38 [GET / HTTP/1.1] +recv 64 [HTTP/1.1 301 Moved Permanently] + +Done +``` ## Documentation ##