Toyomasa Watarai
/
Mbed-example-WS-W27
Mbed Cloud example program for workshop in W27 2018.
Diff: easy-connect/wizfi310-driver/README.md
- Revision:
- 0:119624335925
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/easy-connect/wizfi310-driver/README.md Sat Jun 30 01:40:30 2018 +0000 @@ -0,0 +1,34 @@ +# The WizFi310 WiFi driver for mbed-os +The mbed OS driver for the WizFi310 Wi-Fi module + +## Testing +The WizFi310 library contains the core network tests taken from mbed OS. To run the tests you will need mbed CLI and mbed OS. + +First, setup the the WizFi310-driver and mbed-os repositories for testing: +``` bash +# Sets up the WizFi310 for testing +mbed import wizfi310-driver +cd wizfi310-driver +mbed add mbed-os +``` + +Now you should be able to run the network tests with `mbed test`: +``` bash +# Runs the WizFi310 network tests, requires a wifi access point +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 test -t <COMPILER HERE> -m <BOARD HERE> -n tests-net* --run --verbose +``` + +There are a couple other options that can be used during testing: +- MBED_CFG_WIZFI310_SSID - SSID of the wifi access point to connect to +- MBED_CFG_WIZFI310_PASS - Passphrase of the wifi access point to connect to +- MBED_CFG_WIZFI310_TX - TX pin for the WizFi310 serial connection (defaults to D1) +- MBED_CFG_WIZFI310_RX - TX pin for the WizFi310 serial connection (defaults to D0) +- MBED_CFG_WIZFI310_DEBUG - Enabled debug output from the WizFi310 + +For example, here is how to enabled the debug output from the WizFi310: +``` bash +# Run the WizFi310 network tests with debug output, requires a wifi access point +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 +mbed test -t <COMPILER HERE> -m <BOARD HERE> -n tests-net* --run --verbose +```