![](/media/cache/profiles/5f55d0baa59f4bc1dc393149183f1492.jpg.50x50_q85.jpg)
wifi test
Dependencies: X_NUCLEO_IKS01A2 mbed-http
easy-connect/wizfi310-driver/README.md@0:24d3eb812fd4, 2018-09-05 (annotated)
- Committer:
- JMF
- Date:
- Wed Sep 05 14:28:24 2018 +0000
- Revision:
- 0:24d3eb812fd4
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JMF | 0:24d3eb812fd4 | 1 | # The WizFi310 WiFi driver for mbed-os |
JMF | 0:24d3eb812fd4 | 2 | The mbed OS driver for the WizFi310 Wi-Fi module |
JMF | 0:24d3eb812fd4 | 3 | |
JMF | 0:24d3eb812fd4 | 4 | ## Testing |
JMF | 0:24d3eb812fd4 | 5 | The WizFi310 library contains the core network tests taken from mbed OS. To run the tests you will need mbed CLI and mbed OS. |
JMF | 0:24d3eb812fd4 | 6 | |
JMF | 0:24d3eb812fd4 | 7 | First, setup the the WizFi310-driver and mbed-os repositories for testing: |
JMF | 0:24d3eb812fd4 | 8 | ``` bash |
JMF | 0:24d3eb812fd4 | 9 | # Sets up the WizFi310 for testing |
JMF | 0:24d3eb812fd4 | 10 | mbed import wizfi310-driver |
JMF | 0:24d3eb812fd4 | 11 | cd wizfi310-driver |
JMF | 0:24d3eb812fd4 | 12 | mbed add mbed-os |
JMF | 0:24d3eb812fd4 | 13 | ``` |
JMF | 0:24d3eb812fd4 | 14 | |
JMF | 0:24d3eb812fd4 | 15 | Now you should be able to run the network tests with `mbed test`: |
JMF | 0:24d3eb812fd4 | 16 | ``` bash |
JMF | 0:24d3eb812fd4 | 17 | # Runs the WizFi310 network tests, requires a wifi access point |
JMF | 0:24d3eb812fd4 | 18 | mbed test -t <COMPILER HERE> -m <BOARD HERE> -n tests-net* --compile -DMBED_CFG_WIZFI310_SSID=<SSID HERE> -DMBED_CFG_WIZFI310_PASS=<PASS HERE> |
JMF | 0:24d3eb812fd4 | 19 | mbed test -t <COMPILER HERE> -m <BOARD HERE> -n tests-net* --run --verbose |
JMF | 0:24d3eb812fd4 | 20 | ``` |
JMF | 0:24d3eb812fd4 | 21 | |
JMF | 0:24d3eb812fd4 | 22 | There are a couple other options that can be used during testing: |
JMF | 0:24d3eb812fd4 | 23 | - MBED_CFG_WIZFI310_SSID - SSID of the wifi access point to connect to |
JMF | 0:24d3eb812fd4 | 24 | - MBED_CFG_WIZFI310_PASS - Passphrase of the wifi access point to connect to |
JMF | 0:24d3eb812fd4 | 25 | - MBED_CFG_WIZFI310_TX - TX pin for the WizFi310 serial connection (defaults to D1) |
JMF | 0:24d3eb812fd4 | 26 | - MBED_CFG_WIZFI310_RX - TX pin for the WizFi310 serial connection (defaults to D0) |
JMF | 0:24d3eb812fd4 | 27 | - MBED_CFG_WIZFI310_DEBUG - Enabled debug output from the WizFi310 |
JMF | 0:24d3eb812fd4 | 28 | |
JMF | 0:24d3eb812fd4 | 29 | For example, here is how to enabled the debug output from the WizFi310: |
JMF | 0:24d3eb812fd4 | 30 | ``` bash |
JMF | 0:24d3eb812fd4 | 31 | # Run the WizFi310 network tests with debug output, requires a wifi access point |
JMF | 0:24d3eb812fd4 | 32 | mbed test -t <COMPILER HERE> -m <BOARD HERE> -n tests-net* --compile -DMBED_CFG_WIZFI310_SSID=<SSID HERE> -DMBED_CFG_WIZFI310_PASS=<PASS HERE> -MBED_CFG_WIZFI310_DEBUG=true |
JMF | 0:24d3eb812fd4 | 33 | mbed test -t <COMPILER HERE> -m <BOARD HERE> -n tests-net* --run --verbose |
JMF | 0:24d3eb812fd4 | 34 | ``` |