mbed-os-examples / Mbed OS mbed-os-example-client
Committer:
mbed_official
Date:
Fri Dec 02 08:45:12 2016 +0000
Revision:
37:9a9428fc4b26
Parent:
32:7b3841243d70
Switch the default transport-mode to TCP

The UDP tends to be quite unreliable with IPv4 and NAT and this
can give bad experience for new users. We should default to TCP
to provide more stable platform for testing the capabilities.

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-client

Who changed what in which revision?

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