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

Monitoring the application

This sample program prints debug message over the serial port. So, you can monitor its behavior with terminal software such as Tera term. Configuration of mbed COM port should be 115200, 8NI.

The following message should be shown on terminal just after the sample program is invoked:


Testing the sample program

  1. Flash the sample program
  2. Verify that the registration is succeeded. When registered, you should see Connector:: Endpoint: endpoint registered. printed to the serial port shown below: /media/uploads/HinoNaka/mbed-os_watson-iot_zxing_sample_screen2_1.png

  3. On mbed Device Connector, go to Your device should be listed here. Please note that the endpoint name shown here should be the same as the variable MBED_ENDPOINT_NAME in security.h file
  4. Go to and specify MBED_ENDPOINT_NAME and /888/0/7700 for endpoint and resource-path, respectively. Then, click TEST_API. /media/uploads/HinoNaka/mbed-os_watson-iot_zxing_sample_screen3_1.png

  5. The decoded string of barcode data input from camera sould be shown like the following figure: /media/uploads/HinoNaka/mbed-os_watson-iot_zxing_sample_screen4.png

  6. By default, USER_BUTTON0 is assigned to the function to unregister GR-PEACH from mbed Device Connector. When pressing it, you should see the following 3 messages on the terminal:
  • mbedEndpointNetwork(Ethernet): endpoint main loop exited. Starting endpoint shutdown...
  • mbedEndpointNetwork(Ethernet): shutdown requested. De-registering the endpoint...
  • Connector::Endpoint: de-registering endpoint... /media/uploads/HinoNaka/mbed-os_watson-iot_zxing_sample_screen5.png Press RESET button if you would like to invoke the sample program again.

All wikipages