This is a mbed Client sample where ZXing is incorporated, and works on GR-PEACH and GR-LYCHEE.
Dependencies: DisplayApp AsciiFont
You are viewing an older revision! See the latest version
Wifi settings
This example can use BP3595 Wifi Interface for managing the wireless connectivity. To run this example using Wifi, you need:
- A BP3595 Wifi module ( https://developer.mbed.org/components/BP3595-for-GR-PEACH/ )
- Mount BP3595 onto GR-PEACH
- In the mbed_app.json file, change
mbed_app.json
"network-interface": { "help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD.", "value": "WIFI" }
Provide your Wifi SSID and password here and leave \" in the beginning and end of your SSID and password as shown in the example below:
mbed_app.json
"wifi-ssid": { "help": "WiFi SSID", "value": "\"SSID\"" }, "wifi-password": { "help": "WIFI Password", "value": "\"Password\"" }
Specify the security type for connection to be used. When the security type is WPA2, you need to specify
NSAPI_SECURITY_WAP as follows:
mbed_app.json
"wifi-security": { "help": "Type of encryption", "value": "NSAPI_SECURITY_WPA2" }
Also, when the security type is WEP, you need to specify NSAPI_SECURITY_WEP as follows:
mbed_app.json
"wifi-security": { "help": "Type of encryption", "value": "NSAPI_SECURITY_WEP" }
By default, NSAPI_SECURITY_WPA2 is specified here.