Sample program showing how to connect GR-PEACH into Watson IoT through mbed Connector and Watson's Connector Bridge

Dependencies:   AsciiFont DisplayApp GR-PEACH_video LCD_shield_config LWIPBP3595Interface_STA_for_mbed-os USBDevice

Wifi settings

In this sample program, BP3595 Wifi Interface is available for managing the wireless connectivity. To run this example using Wifi, you need:

  1. A BP3595 Wifi module ( https://developer.mbed.org/components/BP3595-for-GR-PEACH/ )
  2. Mount BP3595 onto GR-PEACH
  3. 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.


All wikipages