U_Blox device connector

Dependencies:   mbed

Fork of mbed-os-example-client by mbed-os-examples

Committer:
mbed_official
Date:
Wed Nov 23 13:45:10 2016 +0000
Revision:
31:218ca6b6fe19
Parent:
0:7d5ec759888b
Child:
32:7b3841243d70
Merge pull request #115 from ARMmbed/revert-5.2.3

Revert mbed OS 5.2.3 back 5.2.0 due to WiFi issues
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-client

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 31:218ca6b6fe19 1
mbed_official 31:218ca6b6fe19 2
mbed_official 31:218ca6b6fe19 3 /*
mbed_official 31:218ca6b6fe19 4
mbed_official 31:218ca6b6fe19 5 * Copyright (c) 2015 ARM Limited. All rights reserved.
mbed_official 31:218ca6b6fe19 6
mbed_official 31:218ca6b6fe19 7 * SPDX-License-Identifier: Apache-2.0
mbed_official 31:218ca6b6fe19 8
mbed_official 31:218ca6b6fe19 9 * Licensed under the Apache License, Version 2.0 (the License); you may
mbed_official 31:218ca6b6fe19 10
mbed_official 31:218ca6b6fe19 11 * not use this file except in compliance with the License.
mbed_official 31:218ca6b6fe19 12
mbed_official 31:218ca6b6fe19 13 * You may obtain a copy of the License at
mbed_official 31:218ca6b6fe19 14
mbed_official 31:218ca6b6fe19 15 *
mbed_official 31:218ca6b6fe19 16
mbed_official 31:218ca6b6fe19 17 * http://www.apache.org/licenses/LICENSE-2.0
mbed_official 31:218ca6b6fe19 18
mbed_official 31:218ca6b6fe19 19 *
mbed_official 31:218ca6b6fe19 20
mbed_official 31:218ca6b6fe19 21 * Unless required by applicable law or agreed to in writing, software
mbed_official 31:218ca6b6fe19 22
mbed_official 31:218ca6b6fe19 23 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
mbed_official 31:218ca6b6fe19 24
mbed_official 31:218ca6b6fe19 25 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbed_official 31:218ca6b6fe19 26
mbed_official 31:218ca6b6fe19 27 * See the License for the specific language governing permissions and
mbed_official 31:218ca6b6fe19 28
mbed_official 31:218ca6b6fe19 29 * limitations under the License.
mbed_official 31:218ca6b6fe19 30
mbed_official 31:218ca6b6fe19 31 */
mbed_official 31:218ca6b6fe19 32
mbed_official 31:218ca6b6fe19 33 #ifndef __SECURITY_H__
mbed_official 31:218ca6b6fe19 34
mbed_official 31:218ca6b6fe19 35 #define __SECURITY_H__
mbed_official 31:218ca6b6fe19 36
mbed_official 31:218ca6b6fe19 37
mbed_official 31:218ca6b6fe19 38
mbed_official 31:218ca6b6fe19 39 #include <inttypes.h>
mbed_official 31:218ca6b6fe19 40
mbed_official 31:218ca6b6fe19 41
mbed_official 31:218ca6b6fe19 42
mbed_official 31:218ca6b6fe19 43 #define MBED_DOMAIN "9d6fe233-9a5f-4eaa-8992-97b1e0fce338"
mbed_official 31:218ca6b6fe19 44
mbed_official 31:218ca6b6fe19 45 #define MBED_ENDPOINT_NAME "c154cc0b-8dc0-4ae6-a28b-25c44c86789e"
mbed_official 31:218ca6b6fe19 46
mbed_official 31:218ca6b6fe19 47
mbed_official 31:218ca6b6fe19 48
mbed_official 31:218ca6b6fe19 49 const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n"
mbed_official 31:218ca6b6fe19 50
mbed_official 31:218ca6b6fe19 51 "MIIBmDCCAT6gAwIBAgIEVUCA0jAKBggqhkjOPQQDAjBLMQswCQYDVQQGEwJGSTEN\r\n"
mbed_official 31:218ca6b6fe19 52
mbed_official 31:218ca6b6fe19 53 "MAsGA1UEBwwET3VsdTEMMAoGA1UECgwDQVJNMQwwCgYDVQQLDANJb1QxETAPBgNV\r\n"
mbed_official 31:218ca6b6fe19 54
mbed_official 31:218ca6b6fe19 55 "BAMMCEFSTSBtYmVkMB4XDTE1MDQyOTA2NTc0OFoXDTE4MDQyOTA2NTc0OFowSzEL\r\n"
mbed_official 31:218ca6b6fe19 56
mbed_official 31:218ca6b6fe19 57 "MAkGA1UEBhMCRkkxDTALBgNVBAcMBE91bHUxDDAKBgNVBAoMA0FSTTEMMAoGA1UE\r\n"
mbed_official 31:218ca6b6fe19 58
mbed_official 31:218ca6b6fe19 59 "CwwDSW9UMREwDwYDVQQDDAhBUk0gbWJlZDBZMBMGByqGSM49AgEGCCqGSM49AwEH\r\n"
mbed_official 31:218ca6b6fe19 60
mbed_official 31:218ca6b6fe19 61 "A0IABLuAyLSk0mA3awgFR5mw2RHth47tRUO44q/RdzFZnLsAsd18Esxd5LCpcT9w\r\n"
mbed_official 31:218ca6b6fe19 62
mbed_official 31:218ca6b6fe19 63 "0tvNfBv4xJxGw0wcYrPDDb8/rjujEDAOMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0E\r\n"
mbed_official 31:218ca6b6fe19 64
mbed_official 31:218ca6b6fe19 65 "AwIDSAAwRQIhAPAonEAkwixlJiyYRQQWpXtkMZax+VlEiS201BG0PpAzAiBh2RsD\r\n"
mbed_official 31:218ca6b6fe19 66
mbed_official 31:218ca6b6fe19 67 "NxLKWwf4O7D6JasGBYf9+ZLwl0iaRjTjytO+Kw==\r\n"
mbed_official 31:218ca6b6fe19 68
mbed_official 31:218ca6b6fe19 69 "-----END CERTIFICATE-----\r\n";
mbed_official 31:218ca6b6fe19 70
mbed_official 31:218ca6b6fe19 71
mbed_official 31:218ca6b6fe19 72
mbed_official 31:218ca6b6fe19 73 const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n"
mbed_official 31:218ca6b6fe19 74
mbed_official 31:218ca6b6fe19 75 "MIIBzzCCAXOgAwIBAgIEPbJdijAMBggqhkjOPQQDAgUAMDkxCzAJBgNVBAYTAkZ\r\n"
mbed_official 31:218ca6b6fe19 76
mbed_official 31:218ca6b6fe19 77 "JMQwwCgYDVQQKDANBUk0xHDAaBgNVBAMME21iZWQtY29ubmVjdG9yLTIwMTYwHh\r\n"
mbed_official 31:218ca6b6fe19 78
mbed_official 31:218ca6b6fe19 79 "cNMTYwODE5MDg0OTA4WhcNMTYxMjMxMDYwMDAwWjCBoTFSMFAGA1UEAxNJOWQ2Z\r\n"
mbed_official 31:218ca6b6fe19 80
mbed_official 31:218ca6b6fe19 81 "mUyMzMtOWE1Zi00ZWFhLTg5OTItOTdiMWUwZmNlMzM4L2MxNTRjYzBiLThkYzAt\r\n"
mbed_official 31:218ca6b6fe19 82
mbed_official 31:218ca6b6fe19 83 "NGFlNi1hMjhiLTI1YzQ0Yzg2Nzg5ZTEMMAoGA1UECxMDQVJNMRIwEAYDVQQKEwl\r\n"
mbed_official 31:218ca6b6fe19 84
mbed_official 31:218ca6b6fe19 85 "tYmVkIHVzZXIxDTALBgNVBAcTBE91bHUxDTALBgNVBAgTBE91bHUxCzAJBgNVBA\r\n"
mbed_official 31:218ca6b6fe19 86
mbed_official 31:218ca6b6fe19 87 "YTAkZJMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEiP8HcjnPyb+nnV2GP7n5T\r\n"
mbed_official 31:218ca6b6fe19 88
mbed_official 31:218ca6b6fe19 89 "h7OC9wFZLa78zVdK9/FClHbJJd6zWlaGEYFhirMzcoNYrpwBNOsMmUEmA6YW0+m\r\n"
mbed_official 31:218ca6b6fe19 90
mbed_official 31:218ca6b6fe19 91 "1DAMBggqhkjOPQQDAgUAA0gAMEUCIQDHzTkR1MGVm16Jai42bxAYPAds5JG38T0\r\n"
mbed_official 31:218ca6b6fe19 92
mbed_official 31:218ca6b6fe19 93 "/OodSMndhhAIgNhLhfotPYL2u0TGLFquQJNNEXNZs604u5n/JsT1BGYo=\r\n"
mbed_official 31:218ca6b6fe19 94
mbed_official 31:218ca6b6fe19 95 "-----END CERTIFICATE-----\r\n";
mbed_official 31:218ca6b6fe19 96
mbed_official 31:218ca6b6fe19 97
mbed_official 31:218ca6b6fe19 98
mbed_official 31:218ca6b6fe19 99 const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n"
mbed_official 31:218ca6b6fe19 100
mbed_official 31:218ca6b6fe19 101 "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgw2tABV2TaAMckC02\r\n"
mbed_official 31:218ca6b6fe19 102
mbed_official 31:218ca6b6fe19 103 "PQ8SAiVbD2o5LHJ9bwfvejviFSShRANCAASI/wdyOc/Jv6edXYY/uflOHs4L3AVk\r\n"
mbed_official 31:218ca6b6fe19 104
mbed_official 31:218ca6b6fe19 105 "trvzNV0r38UKUdskl3rNaVoYRgWGKszNyg1iunAE06wyZQSYDphbT6bU\r\n"
mbed_official 31:218ca6b6fe19 106
mbed_official 31:218ca6b6fe19 107 "-----END PRIVATE KEY-----\r\n";
mbed_official 31:218ca6b6fe19 108
mbed_official 31:218ca6b6fe19 109
mbed_official 31:218ca6b6fe19 110
mbed_official 31:218ca6b6fe19 111 #endif //__SECURITY_H__