Example program for simple-mbed-client, connecting a device to mbed Device Connector.

Dependencies:   BM1383AGLV simple-mbed-client RegisterWriter kionix-kx123-driver

Fork of simple-client-app-shield by Toyomasa Watarai

Committer:
Jan Jongboom
Date:
Thu Jun 30 12:36:07 2016 +0200
Revision:
18:9aadd6ce6f87
Parent:
14:ddc258abaaac
Remove my security certificate

Who changed what in which revision?

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