Send the data of GR-PEACH_HVC-P2_sample to the cloud.

Dependencies:   AsciiFont GR-PEACH_video GraphicsFramework LCD_shield_config R_BSP USBHost_custom easy-connect-gr-peach

Fork of mbed-os-example-client by mbed-os-examples

Note at the time of sample import

Please not check the "Update all libraries to the latest version" at the time of import.


When exporting and using it, increase the following stack size.


#define TCPIP_THREAD_STACKSIZE      1024
#define TCPIP_THREAD_STACKSIZE      2048


This is a sample to send the analysis result of GR-PEACH_HVC-P2_sample to the cloud using mbed-client. Please refer to following for operation of HVC-P2.

Import programGR-PEACH_HVC-P2_sample

Sample to operate omron HVC-P2 on GR-PEACH.

Required hardware

Application setup

Client credentials

To register the application to mbed Device Connector, you need to create and set the client side certificate.

  1. Go to and log in with your mbed account
  2. On mbed Device Connector, go to and click the Get my device security credentials button to get new credentials for your device.
  3. Replace the contents in security.h of this example with content copied above.

Ethernet settings

This sample uses Ethernet as the default connection type. To change the connection type, set WIFI_BP3595 in mbed_app.json:


    "help": "Options are ETHERNET, WIFI_ESP8266, WIFI_BP3595",
    "value": "ETHERNET"

To specify MAC address, add fllowing function to main.cpp. (When using Wifi, setting of MAC address is not necessary.)

Specify MAC address

// set mac address
void mbed_mac_address(char *mac) {
    mac[0] = 0x00;
    mac[1] = 0x02;
    mac[2] = 0xF7;
    mac[3] = 0xF0;
    mac[4] = 0x00;
    mac[5] = 0x00;

Wifi settings

This example can use BP3595 Wifi Interface for managing the wireless connectivity. To run this example using Wifi, you need:

  1. A BP3595 Wifi module ( )
  2. Mount BP3595 onto GR-PEACH
  3. Close GR-PEACH's JP21 (
  4. In the mbed_app.json file, change


    "help": "Options are ETHERNET, WIFI_ESP8266, WIFI_BP3595",
    "value": "WIFI_BP3595"

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:


"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:


    "value": "NSAPI_SECURITY_WEP"

By default, NSAPI_SECURITY_WPA_WPA2 is specified here.

Application resources

This example exposes four resources listed below:

  1. 3202/0/5700. Recognition result from HVC-P2 (GET).
  2. 3201/0/5850. Blink function, blinks LED when executed (POST).
  3. 3201/0/5853. Blink pattern, used by the blink function to determine how to blink. In the format of 1000:500:1000:500:1000:500 (PUT).
  4. 3201/0/5855. Blink color, used by the blink function. Any of red, green, blue, cyan, yellow and magenta is acceptable (PUT).

For more info on how to get notifications when resource 1 changes, or how to use resource 2, 3 and 4, please look at

Import programGR-PEACH_mbed-connector-ZXingSample-node

Node.js based Web Application for mbed Device Connector specific to GR-PEACH_mbed-os-client-ZXingSample

# This is a Web Application for GR-PEACH_mbed-os-client-ZXingSample, but it can also be used for this sample.

Tue Mar 14 05:59:09 2017 +0000
Changed initial setting of mbed_app.json to ETHERNET.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 45:b150e0aa009c 1 #!/bin/bash
mbed_official 45:b150e0aa009c 2 #
mbed_official 45:b150e0aa009c 3 set -e
mbed_official 45:b150e0aa009c 4 TOOL=GCC_ARM
mbed_official 45:b150e0aa009c 5
mbed_official 45:b150e0aa009c 6 echo Compiling with $TOOL
mbed_official 63:c73f78fd7982 7 echo Ethernet v4
mbed_official 45:b150e0aa009c 8 cp configs/eth_v4.json ./mbed_app.json
mbed_official 45:b150e0aa009c 9 cp configs/eth-wifi-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 10 mbed compile -m K64F -t $TOOL
mbed_official 63:c73f78fd7982 11 cp BUILD/K64F/$TOOL/mbed-os-example-client.bin k64f-$TOOL-eth-v4.bin
mbed_official 71:ec259c9b02ea 12 mbed compile -m NUCLEO_F429ZI -t $TOOL
mbed_official 71:ec259c9b02ea 13 cp ./BUILD/NUCLEO_F429ZI/$TOOL/mbed-os-example-client.bin f429zi-$TOOL-eth-v4.bin
mbed_official 63:c73f78fd7982 14 mbed compile -m UBLOX_EVK_ODIN_W2 -t $TOOL
mbed_official 63:c73f78fd7982 15 cp ./BUILD/UBLOX_EVK_ODIN_W2/$TOOL/mbed-os-example-client.bin ublox-odin-$TOOL-eth-v4.bin
mbed_official 45:b150e0aa009c 16
mbed_official 63:c73f78fd7982 17 echo Ethernet v6
mbed_official 45:b150e0aa009c 18 cp configs/eth_v6.json ./mbed_app.json
mbed_official 45:b150e0aa009c 19 cp configs/eth-wifi-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 20 mbed compile -m K64F -t $TOOL
mbed_official 63:c73f78fd7982 21 cp BUILD/K64F/$TOOL/mbed-os-example-client.bin k64f-$TOOL-eth-v6.bin
mbed_official 71:ec259c9b02ea 22 mbed compile -m NUCLEO_F429ZI -t $TOOL
mbed_official 71:ec259c9b02ea 23 cp ./BUILD/NUCLEO_F429ZI/$TOOL/mbed-os-example-client.bin f429zi-$TOOL-eth-v4.bin
mbed_official 63:c73f78fd7982 24 mbed compile -m UBLOX_EVK_ODIN_W2 -t $TOOL
mbed_official 63:c73f78fd7982 25 cp ./BUILD/UBLOX_EVK_ODIN_W2/$TOOL/mbed-os-example-client.bin ublox-odin-$TOOL-eth-v6.bin
mbed_official 45:b150e0aa009c 26
mbed_official 63:c73f78fd7982 27 echo WIFI - ESP8266
mbed_official 63:c73f78fd7982 28 cp configs/wifi_esp8266_v4.json ./mbed_app.json
mbed_official 45:b150e0aa009c 29 cp configs/eth-wifi-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 30 mbed compile -m K64F -t $TOOL
mbed_official 63:c73f78fd7982 31 cp BUILD/K64F/$TOOL/mbed-os-example-client.bin k64f-$TOOL-esp-wifi-v4.bin
mbed_official 71:ec259c9b02ea 32 mbed compile -m NUCLEO_F429ZI -t $TOOL
mbed_official 71:ec259c9b02ea 33 cp ./BUILD/NUCLEO_F429ZI/$TOOL/mbed-os-example-client.bin f429zi-$TOOL-esp-wifi-v4.bin
mbed_official 63:c73f78fd7982 34
mbed_official 63:c73f78fd7982 35 echo WIFI - ODIN for UBLOX_EVK_ODIN_W2
mbed_official 63:c73f78fd7982 36 cp configs/wifi_odin_v4.json ./mbed_app.json
mbed_official 63:c73f78fd7982 37 cp configs/eth-wifi-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 38 mbed compile -m UBLOX_EVK_ODIN_W2 -t $TOOL
mbed_official 63:c73f78fd7982 39 cp ./BUILD/UBLOX_EVK_ODIN_W2/$TOOL/mbed-os-example-client.bin ublox-odin-$TOOL-wifi-v4.bin
mbed_official 45:b150e0aa009c 40
mbed_official 63:c73f78fd7982 41 echo 6-Lowpan builds
mbed_official 45:b150e0aa009c 42 cp configs/mesh_6lowpan.json ./mbed_app.json
mbed_official 45:b150e0aa009c 43 cp configs/mesh-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 44 mbed compile -m K64F -t $TOOL
mbed_official 63:c73f78fd7982 45 cp BUILD/K64F/$TOOL/mbed-os-example-client.bin k64f-$TOOL-6lowpan.bin
mbed_official 71:ec259c9b02ea 46 mbed compile -m NUCLEO_F429ZI -t $TOOL
mbed_official 71:ec259c9b02ea 47 cp ./BUILD/NUCLEO_F429ZI/$TOOL/mbed-os-example-client.bin f429zi-$TOOL-6lowpan.bin
mbed_official 71:ec259c9b02ea 48
mbed_official 71:ec259c9b02ea 49 echo 6-Lowpan Sub-1 GHz builds
mbed_official 71:ec259c9b02ea 50 cp configs/mesh_6lowpan_subg.json ./mbed_app.json
mbed_official 71:ec259c9b02ea 51 cp configs/mesh-mbedignore ./.mbedignore
mbed_official 71:ec259c9b02ea 52 mbed compile -m NUCLEO_F429ZI -t $TOOL
mbed_official 71:ec259c9b02ea 53 cp ./BUILD/NUCLEO_F429ZI/$TOOL/mbed-os-example-client.bin f429zi-$TOOL-6lowpan-subg.bin
mbed_official 45:b150e0aa009c 54
mbed_official 63:c73f78fd7982 55 echo Thread builds
mbed_official 45:b150e0aa009c 56 cp configs/mesh_thread.json ./mbed_app.json
mbed_official 45:b150e0aa009c 57 cp configs/mesh-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 58 mbed compile -m K64F -t $TOOL
mbed_official 63:c73f78fd7982 59 cp BUILD/K64F/$TOOL/mbed-os-example-client.bin k64f-$TOOL-Thread.bin
mbed_official 71:ec259c9b02ea 60 mbed compile -m NUCLEO_F429ZI -t $TOOL
mbed_official 71:ec259c9b02ea 61 cp ./BUILD/NUCLEO_F429ZI/$TOOL/mbed-os-example-client.bin f429zi-$TOOL-Thread.bin