This is the sample program that can see the decode result of barcode data on Watson IoT.

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

Committer:
Osamu Nakamura
Date:
Thu Nov 10 20:04:48 2016 +0900
Revision:
0:7d720671e6dc
Initial Commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Osamu Nakamura 0:7d720671e6dc 1 /*
Osamu Nakamura 0:7d720671e6dc 2 * Copyright (c) 2015 ARM Limited. All rights reserved.
Osamu Nakamura 0:7d720671e6dc 3 * SPDX-License-Identifier: Apache-2.0
Osamu Nakamura 0:7d720671e6dc 4 * Licensed under the Apache License, Version 2.0 (the License); you may
Osamu Nakamura 0:7d720671e6dc 5 * not use this file except in compliance with the License.
Osamu Nakamura 0:7d720671e6dc 6 * You may obtain a copy of the License at
Osamu Nakamura 0:7d720671e6dc 7 *
Osamu Nakamura 0:7d720671e6dc 8 * http://www.apache.org/licenses/LICENSE-2.0
Osamu Nakamura 0:7d720671e6dc 9 *
Osamu Nakamura 0:7d720671e6dc 10 * Unless required by applicable law or agreed to in writing, software
Osamu Nakamura 0:7d720671e6dc 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
Osamu Nakamura 0:7d720671e6dc 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Osamu Nakamura 0:7d720671e6dc 13 * See the License for the specific language governing permissions and
Osamu Nakamura 0:7d720671e6dc 14 * limitations under the License.
Osamu Nakamura 0:7d720671e6dc 15 */
Osamu Nakamura 0:7d720671e6dc 16 #ifndef __SECURITY_H__
Osamu Nakamura 0:7d720671e6dc 17 #define __SECURITY_H__
Osamu Nakamura 0:7d720671e6dc 18
Osamu Nakamura 0:7d720671e6dc 19 #include <inttypes.h>
Osamu Nakamura 0:7d720671e6dc 20
Osamu Nakamura 0:7d720671e6dc 21 #define MBED_DOMAIN "DOMAIN"
Osamu Nakamura 0:7d720671e6dc 22 #define MBED_ENDPOINT_NAME "ENDPOINT_NAME"
Osamu Nakamura 0:7d720671e6dc 23
Osamu Nakamura 0:7d720671e6dc 24 const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n"
Osamu Nakamura 0:7d720671e6dc 25 "-----END CERTIFICATE-----\r\n";
Osamu Nakamura 0:7d720671e6dc 26
Osamu Nakamura 0:7d720671e6dc 27 const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n"
Osamu Nakamura 0:7d720671e6dc 28 "-----END CERTIFICATE-----\r\n";
Osamu Nakamura 0:7d720671e6dc 29
Osamu Nakamura 0:7d720671e6dc 30 const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n"
Osamu Nakamura 0:7d720671e6dc 31 "-----END PRIVATE KEY-----\r\n";
Osamu Nakamura 0:7d720671e6dc 32
Osamu Nakamura 0:7d720671e6dc 33 #endif //__SECURITY_H__
Osamu Nakamura 0:7d720671e6dc 34
Osamu Nakamura 0:7d720671e6dc 35 #error "You need to get security.h credentials from connector.mbed.com and replace the content of this security.h file"