wifi test

Dependencies:   X_NUCLEO_IKS01A2 mbed-http

Committer:
JMF
Date:
Wed Sep 05 14:28:24 2018 +0000
Revision:
0:24d3eb812fd4
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JMF 0:24d3eb812fd4 1
JMF 0:24d3eb812fd4 2 # Easy Connect with the wnc14a2a-library
JMF 0:24d3eb812fd4 3
JMF 0:24d3eb812fd4 4 ## Specifying the connectivity method
JMF 0:24d3eb812fd4 5
JMF 0:24d3eb812fd4 6 Add the following to your `mbed_app.json` file:
JMF 0:24d3eb812fd4 7
JMF 0:24d3eb812fd4 8 ```json
JMF 0:24d3eb812fd4 9 {
JMF 0:24d3eb812fd4 10 "config": {
JMF 0:24d3eb812fd4 11 "network-interface":{
JMF 0:24d3eb812fd4 12 "help": "options are ETHERNET, WIFI_ESP8266, WIFI_IDW0XX1, WIFI_ODIN, WIFI_RTW, WIFI_WIZFI310, WIFI_ISM43362, MESH_LOWPAN_ND, MESH_THREAD, CELLULAR_ONBOARD, CELLULAR_WNC14A2A",
JMF 0:24d3eb812fd4 13 "value": "CELLULAR_WNC14A2A"
JMF 0:24d3eb812fd4 14 }
JMF 0:24d3eb812fd4 15 },
JMF 0:24d3eb812fd4 16 }
JMF 0:24d3eb812fd4 17 }
JMF 0:24d3eb812fd4 18 ```
JMF 0:24d3eb812fd4 19
JMF 0:24d3eb812fd4 20 ## Debug settings
JMF 0:24d3eb812fd4 21 You may also want to specify the following to obtain debug output. This is added to the "config" section:
JMF 0:24d3eb812fd4 22
JMF 0:24d3eb812fd4 23 ```json
JMF 0:24d3eb812fd4 24 "config": {
JMF 0:24d3eb812fd4 25 "wnc_debug": {
JMF 0:24d3eb812fd4 26 "help" : "enable or disable WNC debug messages.",
JMF 0:24d3eb812fd4 27 "value": 0
JMF 0:24d3eb812fd4 28 },
JMF 0:24d3eb812fd4 29 "wnc_debug_setting": {
JMF 0:24d3eb812fd4 30 "help" : "bit value 1 and/or 2 enable WncController debug output, bit value 4 enables mbed driver debug output.",
JMF 0:24d3eb812fd4 31 "value": "4"
JMF 0:24d3eb812fd4 32 }
JMF 0:24d3eb812fd4 33 }
JMF 0:24d3eb812fd4 34 ```
JMF 0:24d3eb812fd4 35
JMF 0:24d3eb812fd4 36 where the wnc_debug is either 'true' or 'false' to enable or disable debug output and the `wnc_debug_setting` variable is a
JMF 0:24d3eb812fd4 37 bit-field with the following settings:
JMF 0:24d3eb812fd4 38 0x01 - Basic WNC driver debug output
JMF 0:24d3eb812fd4 39 0x02 - Comprehensive WNC driver debug output
JMF 0:24d3eb812fd4 40 0x04 - Driver Enter/Exit debug information
JMF 0:24d3eb812fd4 41 0x08 - Driver Event Queue debug information
JMF 0:24d3eb812fd4 42 0x10 - SMS debug information
JMF 0:24d3eb812fd4 43 0x20 - Dump Driver Arrays
JMF 0:24d3eb812fd4 44
JMF 0:24d3eb812fd4 45 ## Overriding settings
JMF 0:24d3eb812fd4 46 You need to increase the size of the Tx and Rx buffers used when communicating to the WNC device by adding (increas the buffer
JMF 0:24d3eb812fd4 47 size to 4KB from 256 Bytes):
JMF 0:24d3eb812fd4 48
JMF 0:24d3eb812fd4 49
JMF 0:24d3eb812fd4 50 ```json
JMF 0:24d3eb812fd4 51 "target_overrides": {
JMF 0:24d3eb812fd4 52 "*": {
JMF 0:24d3eb812fd4 53 "drivers.uart-serial-txbuf-size": 4096,
JMF 0:24d3eb812fd4 54 "drivers.uart-serial-rxbuf-size": 4096
JMF 0:24d3eb812fd4 55 }
JMF 0:24d3eb812fd4 56 ```
JMF 0:24d3eb812fd4 57