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.


RevisionDateWhoCommit message
74:bf6d9bd511bd 2017-03-14 dkato Changed initial setting of mbed_app.json to ETHERNET. default tip
73:fbc0212c2eaf 2017-03-14 dkato Send the data of GR-PEACH_HVC-P2_sample to the cloud.
72:d0c254f237c4 2017-03-13 mbed_official Add platform NUCLEO-F429ZI & RF expansion board X-NUCLEO-IDS01A4 (#188)
71:ec259c9b02ea 2017-03-13 mbed_official Add STM32 Nucleo & Spirit1 RF
70:23c95e43feb9 2017-03-09 mbed_official Merge pull request #190 from ARMmbed/oob_test_mbed-os-5.4
69:64f9214729ae 2017-03-09 mbed_official Merge pull request #202 from ARMmbed/SeppoTakalo-patch-1
68:1a8e13b21e7e 2017-03-09 mbed_official Merge pull request #197 from ARMmbed/doc_fix
67:312b4fec81a2 2017-02-28 mbed_official mbed OS 5.3.6
66:8079b3572c2e 2017-02-23 mbed_official Change 6LoWPAN test configs.
65:ea64e559b7d3 2017-02-20 mbed_official Do not increase counter if device is not yet registered.
64:d7458b04a609 2017-02-15 mbed_official mbed OS 5.3.5
63:c73f78fd7982 2017-02-15 mbed_official Integrate easy-connect, fix serial, fix warning (#176)
62:077cbce2bd10 2017-02-02 mbed_official UBLOX_EVK_ODIN_W2 ethernet support
61:418d284b2bfd 2017-02-02 mbed_official Update mbed-client.lib to v2.0.2
60:64b1819f4793 2017-02-01 mbed_official mbed OS 5.3.4
59:b2569564d62c 2017-01-27 mbed_official Fix the cert len in simpleclient.h (#170)
58:e5468bc5bf9a 2017-01-26 mbed_official - Ublox tested on WiFi
57:bb3eca53b307 2017-01-26 mbed_official Merge pull request #166 from ARMmbed/memory_optimizations
56:785a82d75f1f 2017-01-17 mbed_official Merge pull request #164 from adbridge/master
55:4f8a8bfbaf53 2017-01-11 mbed_official Newer (57f2276) Atmel RF driver
54:b82f6137dcb1 2017-01-09 mbed_official mbed OS 5.3.2
53:2e40e7d6aed6 2017-01-05 mbed_official Editorial changes.
52:957eff5f0ee9 2017-01-05 mbed_official - compilation issue (#161)
51:f2c99fcbcd08 2017-01-04 mbed_official Mesh to use channel 12 & Thread PANID 0xDEFA (#158)
50:ff7d04c93314 2016-12-22 mbed_official mbedOS 5.3.1
49:10f84adec19e 2016-12-21 mbed_official Fixed do_blink to use loop instead of recursive call. (#148)
48:bef96b79dec0 2016-12-20 mbed_official Use port=0 for randomization
47:c64ceb183891 2016-12-16 mbed_official mbed OS 5.3.0 (2nd try)
46:9360459cf54e 2016-12-15 mbed_official mbedOS 5.3 update (#150)
45:b150e0aa009c 2016-12-13 mbed_official configs/*.json based configurations (#140)
44:2b472e66a942 2016-12-13 mbed_official Fix UBLOX ODIN Wifi Connectivity, add IPVx print
43:90fccf21be20 2016-12-12 mbed_official Fix UPD in Mesh for real
42:d9a3043214a6 2016-12-11 mbed_official Simplify UPD and IPv4/IPv6 selections
41:496e5ec1f1bd 2016-12-10 mbed_official Support for UBLOX_EVK_ODIN_W2 / Odin WiFi
40:c2fa339bdacc 2016-12-08 mbed_official Merge pull request #124 from artokin/thread_jenkinsfile_update
39:4a161de53cde 2016-12-05 mbed_official Switch Serial to RawSerial
38:684673708ad1 2016-12-05 mbed_official Newer version of esp8266 WiFi driver
37:9a9428fc4b26 2016-12-02 mbed_official Switch the default transport-mode to TCP
36:bfb6816a677c 2016-11-29 mbed_official Merge pull request #123 from ARMmbed/params
35:d681e90e7085 2016-11-25 mbed_official Merge pull request #120 from ARMmbed/anttiylitokola-patch-1
34:612bb2ce2417 2016-11-25 mbed_official Merge pull request #119 from ARMmbed/anttiylitokola-patch-1
33:8d5db941b91e 2016-11-23 mbed_official Merge pull request #118 from ARMmbed/mbedos523
32:7b3841243d70 2016-11-23 mbed_official Merge pull request #116 from ARMmbed/revert-115-revert-5.2.3
31:218ca6b6fe19 2016-11-23 mbed_official Merge pull request #115 from ARMmbed/revert-5.2.3
30:ac90dc55f55e 2016-11-22 mbed_official update mbed-os library to mbed-os-5.2.3 (#114)
29:3d4e8c3e3721 2016-11-08 mbed_official Merge pull request #108 from ARMmbed/mbed-os-5.2.0-1
28:761489846aeb 2016-11-02 mbed_official Merge pull request #102 from ARMmbed/PAL1.0
27:3d32587bf8f7 2016-11-01 mbed_official Merge pull request #103 from ARMmbed/lowpan_to_jenkinsfile
26:bb8801a6b7d0 2016-10-28 mbed_official Updating mbed-os to mbed-os-5.2.1
25:32b45b3e4d12 2016-10-28 mbed_official Merge pull request #96 from ARMmbed/mbedTLS_cleanup
24:5db6419ee4be 2016-10-25 mbed_official Merge pull request #98 from ARMmbed/IOTCLT-1128
23:b799cc2a6c21 2016-10-24 mbed_official Updating mbed-os to mbed-os-5.2.0
22:e39e09d79a63 2016-10-24 mbed_official Merge pull request #97 from ARMmbed/fix_readme_oob
21:b88cdeb5b302 2016-10-21 mbed_official Merge branch 'oob_change'
20:5542a1afdc32 2016-10-05 mbed_official Updating mbed-os to mbed-os-5.1.5
19:91eb6f58fd77 2016-09-29 mbed_official Merge pull request #88 from mikaleppanen/entropy
18:628e22df9c41 2016-09-21 mbed_official Merge pull request #82 from ARMmbed/jenkinsfile
17:21bf9392a1e1 2016-09-16 mbed_official Updating mbed-os to mbed-os-5.1.4
16:b109b2ca831d 2016-08-20 mbed_official Updating mbed-os to mbed-os-5.1.2
15:26331aaa4621 2016-08-19 mbed_official Updating mbed-os to mbed-os-5.1.1