Mbed OS and Pelion Device Management example over WIFI for DISCO_L475VG_IOT01 board

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

DEPRECATED

This example application is not maintained and not recommended. It uses an old version of Mbed OS, Pelion DM and Arm toolchain. It doesn't work with Mbed Studio.

Please use: https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-pelion/

This example is known to work on the following platforms:

DISCO_L475E_IOT01A

Follow the Quick-Start instructions: https://cloud.mbed.com/quick-start

Example functionality

This example showcases the following device functionality:

  • Read onboard temperature and humidity sensors, and report them as Pelion LWM2M resources (see image below).
  • On user button click, increment Pelion LWM2M button resource.
  • Allow the user to change the state of the board LED from Pelion LWM2M led_state resource and PUT request.
  • Uses all onboard sensors and reports them as Pelion LWM2M resources.

/media/uploads/screamer/pelion_st_humidity_reading.png?v=2

Use this example with Mbed CLI

1. Import the application into your desktop:

mbed import https://os.mbed.com/teams/ST/code/pelion-example-disco-iot01

cd pelion-example-disco-iot01

2. Install the CLOUD_SDK_API_KEY

mbed config -G CLOUD_SDK_API_KEY <PELION_DM_API_KEY>

For instructions on how to generate your API key, please see the documentation.

3. Initialize firmware credentials (done once per repository). You can use the following command:

mbed dm init -d "<your company name in Pelion DM>" --model-name "<product model identifier>" -q --force

If above command do not work for your Mbed CLI, please consider upgrading Mbed CLI to version 1.8.x or above.

4. Compile and program:

mbed compile -t <toolchain> -m DISCO_L475VG_IOT01A

(supported toolchains : GCC_ARM / ARM / IAR)

5. You can connect on a virtual terminal/COM port to the platform using:

mbed sterm -b 115200

This should give you an output similar to:

[BOOT] Mbed Bootloader
[BOOT] ARM: 00000000000000000000
[BOOT] OEM: 00000000000000000000
[BOOT] Layout: 0 80096F4
[BOOT] Active firmware integrity check:
[BOOT] SHA256: 0660E360D432225D5251461998FD8617B017098C5F1F90D5FB607BF8C27ED530
[BOOT] Version: 1553615309
[BOOT] Slot 0 is empty
[BOOT] Active firmware up-to-date
[BOOT] Application's start address: 0x8010400
[BOOT] Application's jump address: 0x8011041
[BOOT] Application's stack address: 0x20018000
[BOOT] Forwarding to application...

Starting Simple Pelion Device Management Client example
You can hold the user button during boot to format the storage and change the device identity.

Sensors configuration:
Invalid new address!
HTS221  humidity & temperature    = 0xBC
LPS22HB pressure & temperature    = 0xB1
LIS3MDL magnetometer              = 0x3D
LSM6DSL accelerometer & gyroscope = 0x6A

Connecting to the network using Wifi...
Connected to the network successfully. IP address: 192.168.1.3
Initializing Pelion Device Management Client...
Initialized Pelion Client. Registering...
Registered to Pelion Device Management. Endpoint Name: 0169********************001002d5

ADC temp:     23.0037 C,  vref:      0.3661 V
HTS221 temp:   28.700 C,  humidity:   31.90 %
LPS22HB temp:  29.600 C,  pressure: 1032.01 mbar
LIS3MDL mag:    0.217 x,  -0.284 y,  -0.053 z [gauss]
LSM6DSL acc:    0.005 x,  -0.014 y,   1.029 z [g]
LSM6DSL gyro:   0.910 x,  -0.910 y,   1.120 z [dps]
VL53L0X dist:    1855 mm
Committer:
chris
Date:
Fri Mar 13 13:18:07 2020 +0000
Revision:
36:aaf44d2a6c33
Parent:
35:061bc344e4ec
First revision

Who changed what in which revision?

UserRevisionLine numberNew contents of line
adustm 1:e86b1cffc402 1 /*
chris 35:061bc344e4ec 2 * Copyright (c) 2018 ARM Limited. All rights reserved.
adustm 1:e86b1cffc402 3 * SPDX-License-Identifier: Apache-2.0
adustm 1:e86b1cffc402 4 * Licensed under the Apache License, Version 2.0 (the License); you may
adustm 1:e86b1cffc402 5 * not use this file except in compliance with the License.
adustm 1:e86b1cffc402 6 * You may obtain a copy of the License at
adustm 1:e86b1cffc402 7 *
adustm 1:e86b1cffc402 8 * http://www.apache.org/licenses/LICENSE-2.0
adustm 1:e86b1cffc402 9 *
adustm 1:e86b1cffc402 10 * Unless required by applicable law or agreed to in writing, software
adustm 1:e86b1cffc402 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
adustm 1:e86b1cffc402 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
adustm 1:e86b1cffc402 13 * See the License for the specific language governing permissions and
adustm 1:e86b1cffc402 14 * limitations under the License.
adustm 1:e86b1cffc402 15 */
adustm 1:e86b1cffc402 16 #ifndef __MBED_CLOUD_DEV_CREDENTIALS_H__
adustm 1:e86b1cffc402 17 #define __MBED_CLOUD_DEV_CREDENTIALS_H__
chris 35:061bc344e4ec 18
adustm 1:e86b1cffc402 19 #include <inttypes.h>
chris 35:061bc344e4ec 20
chris 35:061bc344e4ec 21 const char MBED_CLOUD_DEV_BOOTSTRAP_ENDPOINT_NAME[] = "0170cf174a248ed8eacf68da03c00000";
chris 35:061bc344e4ec 22 const char MBED_CLOUD_DEV_ACCOUNT_ID[] = "01686fc90acff24e5a34718b00000000";
chris 35:061bc344e4ec 23 const char MBED_CLOUD_DEV_BOOTSTRAP_SERVER_URI[] = "coaps://bootstrap.us-east-1.mbedcloud.com:5684?aid=01686fc90acff24e5a34718b00000000";
chris 35:061bc344e4ec 24
chris 35:061bc344e4ec 25 const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE[] =
chris 35:061bc344e4ec 26 { 0x30, 0x82, 0x02, 0x83, 0x30, 0x82, 0x02, 0x29,
chris 35:061bc344e4ec 27 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x10, 0x67,
chris 35:061bc344e4ec 28 0x67, 0x4a, 0x42, 0xbf, 0x9e, 0x4b, 0x11, 0xa9,
chris 35:061bc344e4ec 29 0x9c, 0xfd, 0xf3, 0x04, 0x1d, 0x2f, 0x6f, 0x30,
chris 35:061bc344e4ec 30 0x0a, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d,
chris 35:061bc344e4ec 31 0x04, 0x03, 0x02, 0x30, 0x81, 0xa2, 0x31, 0x0b,
chris 35:061bc344e4ec 32 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
chris 35:061bc344e4ec 33 0x02, 0x47, 0x42, 0x31, 0x17, 0x30, 0x15, 0x06,
chris 35:061bc344e4ec 34 0x03, 0x55, 0x04, 0x08, 0x0c, 0x0e, 0x43, 0x61,
chris 35:061bc344e4ec 35 0x6d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73,
chris 35:061bc344e4ec 36 0x68, 0x69, 0x72, 0x65, 0x31, 0x12, 0x30, 0x10,
chris 35:061bc344e4ec 37 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x09, 0x43,
chris 35:061bc344e4ec 38 0x61, 0x6d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65,
chris 35:061bc344e4ec 39 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x04,
chris 35:061bc344e4ec 40 0x0a, 0x0c, 0x07, 0x41, 0x52, 0x4d, 0x20, 0x4c,
chris 35:061bc344e4ec 41 0x74, 0x64, 0x31, 0x29, 0x30, 0x27, 0x06, 0x03,
chris 35:061bc344e4ec 42 0x55, 0x04, 0x0b, 0x0c, 0x20, 0x30, 0x31, 0x36,
chris 35:061bc344e4ec 43 0x38, 0x36, 0x66, 0x63, 0x39, 0x30, 0x61, 0x63,
chris 35:061bc344e4ec 44 0x66, 0x66, 0x32, 0x34, 0x65, 0x35, 0x61, 0x33,
chris 35:061bc344e4ec 45 0x34, 0x37, 0x31, 0x38, 0x62, 0x30, 0x30, 0x30,
chris 35:061bc344e4ec 46 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x29, 0x30,
chris 35:061bc344e4ec 47 0x27, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x20,
chris 35:061bc344e4ec 48 0x30, 0x31, 0x37, 0x30, 0x63, 0x66, 0x31, 0x37,
chris 35:061bc344e4ec 49 0x34, 0x61, 0x32, 0x34, 0x38, 0x65, 0x64, 0x38,
chris 35:061bc344e4ec 50 0x65, 0x61, 0x63, 0x66, 0x36, 0x38, 0x64, 0x61,
chris 35:061bc344e4ec 51 0x30, 0x33, 0x63, 0x30, 0x30, 0x30, 0x30, 0x30,
chris 35:061bc344e4ec 52 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x33,
chris 35:061bc344e4ec 53 0x31, 0x32, 0x31, 0x34, 0x31, 0x32, 0x35, 0x34,
chris 35:061bc344e4ec 54 0x5a, 0x17, 0x0d, 0x33, 0x30, 0x30, 0x33, 0x31,
chris 35:061bc344e4ec 55 0x32, 0x31, 0x34, 0x31, 0x32, 0x35, 0x34, 0x5a,
chris 35:061bc344e4ec 56 0x30, 0x81, 0xa2, 0x31, 0x0b, 0x30, 0x09, 0x06,
chris 35:061bc344e4ec 57 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x47, 0x42,
chris 35:061bc344e4ec 58 0x31, 0x17, 0x30, 0x15, 0x06, 0x03, 0x55, 0x04,
chris 35:061bc344e4ec 59 0x08, 0x0c, 0x0e, 0x43, 0x61, 0x6d, 0x62, 0x72,
chris 35:061bc344e4ec 60 0x69, 0x64, 0x67, 0x65, 0x73, 0x68, 0x69, 0x72,
chris 35:061bc344e4ec 61 0x65, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55,
chris 35:061bc344e4ec 62 0x04, 0x07, 0x0c, 0x09, 0x43, 0x61, 0x6d, 0x62,
chris 35:061bc344e4ec 63 0x72, 0x69, 0x64, 0x67, 0x65, 0x31, 0x10, 0x30,
chris 35:061bc344e4ec 64 0x0e, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x07,
chris 35:061bc344e4ec 65 0x41, 0x52, 0x4d, 0x20, 0x4c, 0x74, 0x64, 0x31,
chris 35:061bc344e4ec 66 0x29, 0x30, 0x27, 0x06, 0x03, 0x55, 0x04, 0x0b,
chris 35:061bc344e4ec 67 0x0c, 0x20, 0x30, 0x31, 0x36, 0x38, 0x36, 0x66,
chris 35:061bc344e4ec 68 0x63, 0x39, 0x30, 0x61, 0x63, 0x66, 0x66, 0x32,
chris 35:061bc344e4ec 69 0x34, 0x65, 0x35, 0x61, 0x33, 0x34, 0x37, 0x31,
chris 35:061bc344e4ec 70 0x38, 0x62, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
chris 35:061bc344e4ec 71 0x30, 0x30, 0x31, 0x29, 0x30, 0x27, 0x06, 0x03,
chris 35:061bc344e4ec 72 0x55, 0x04, 0x03, 0x0c, 0x20, 0x30, 0x31, 0x37,
chris 35:061bc344e4ec 73 0x30, 0x63, 0x66, 0x31, 0x37, 0x34, 0x61, 0x32,
chris 35:061bc344e4ec 74 0x34, 0x38, 0x65, 0x64, 0x38, 0x65, 0x61, 0x63,
chris 35:061bc344e4ec 75 0x66, 0x36, 0x38, 0x64, 0x61, 0x30, 0x33, 0x63,
chris 35:061bc344e4ec 76 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x59, 0x30,
chris 35:061bc344e4ec 77 0x13, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d,
chris 35:061bc344e4ec 78 0x02, 0x01, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce,
chris 35:061bc344e4ec 79 0x3d, 0x03, 0x01, 0x07, 0x03, 0x42, 0x00, 0x04,
chris 35:061bc344e4ec 80 0x25, 0x3d, 0x61, 0x99, 0xae, 0x5e, 0x87, 0x2a,
chris 35:061bc344e4ec 81 0x10, 0x97, 0x5f, 0xf5, 0x5e, 0x67, 0x8b, 0x66,
chris 35:061bc344e4ec 82 0xed, 0x74, 0x71, 0x10, 0x4e, 0xe4, 0xf2, 0x8a,
chris 35:061bc344e4ec 83 0x26, 0x29, 0x58, 0x76, 0xe7, 0x35, 0xf6, 0x63,
chris 35:061bc344e4ec 84 0x9d, 0x2b, 0xde, 0xef, 0xc1, 0xe8, 0x6d, 0xc0,
chris 35:061bc344e4ec 85 0x0d, 0xab, 0x34, 0x08, 0xe2, 0xfa, 0x7f, 0xa5,
chris 35:061bc344e4ec 86 0xb6, 0x14, 0xbb, 0x08, 0xce, 0x92, 0x52, 0x85,
chris 35:061bc344e4ec 87 0x6a, 0x0a, 0xa9, 0xcb, 0x7c, 0x78, 0x56, 0xa9,
chris 35:061bc344e4ec 88 0xa3, 0x3f, 0x30, 0x3d, 0x30, 0x12, 0x06, 0x09,
chris 35:061bc344e4ec 89 0x2b, 0x06, 0x01, 0x04, 0x01, 0xa0, 0x20, 0x81,
chris 35:061bc344e4ec 90 0x49, 0x04, 0x05, 0x02, 0x03, 0x40, 0x00, 0x91,
chris 35:061bc344e4ec 91 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x01,
chris 35:061bc344e4ec 92 0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01, 0x01,
chris 35:061bc344e4ec 93 0xff, 0x02, 0x01, 0x00, 0x30, 0x13, 0x06, 0x03,
chris 35:061bc344e4ec 94 0x55, 0x1d, 0x25, 0x04, 0x0c, 0x30, 0x0a, 0x06,
chris 35:061bc344e4ec 95 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03,
chris 35:061bc344e4ec 96 0x02, 0x30, 0x0a, 0x06, 0x08, 0x2a, 0x86, 0x48,
chris 35:061bc344e4ec 97 0xce, 0x3d, 0x04, 0x03, 0x02, 0x03, 0x48, 0x00,
chris 35:061bc344e4ec 98 0x30, 0x45, 0x02, 0x21, 0x00, 0xab, 0x86, 0x3d,
chris 35:061bc344e4ec 99 0x4f, 0xbd, 0xca, 0x8c, 0xb0, 0x20, 0x04, 0x40,
chris 35:061bc344e4ec 100 0xc7, 0x93, 0x4d, 0xcb, 0x66, 0x37, 0x3c, 0x8d,
chris 35:061bc344e4ec 101 0x71, 0x17, 0xef, 0x09, 0x3e, 0x92, 0x1a, 0x8e,
chris 35:061bc344e4ec 102 0x44, 0xa1, 0xd2, 0x74, 0x71, 0x02, 0x20, 0x52,
chris 35:061bc344e4ec 103 0x93, 0x6c, 0x96, 0xce, 0x94, 0x9d, 0x13, 0x21,
chris 35:061bc344e4ec 104 0xc5, 0xa1, 0x18, 0x33, 0x4c, 0x58, 0x33, 0x50,
chris 35:061bc344e4ec 105 0xfc, 0x66, 0x1f, 0x94, 0xda, 0xa0, 0x65, 0x35,
chris 35:061bc344e4ec 106 0xa3, 0xcc, 0x97, 0x33, 0x80, 0xd2, 0x35 };
chris 35:061bc344e4ec 107
chris 35:061bc344e4ec 108 const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE[] =
chris 35:061bc344e4ec 109 { 0x30, 0x82, 0x02, 0x1f, 0x30, 0x82, 0x01, 0xc5,
chris 35:061bc344e4ec 110 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x10, 0x3c,
chris 35:061bc344e4ec 111 0x63, 0x38, 0x70, 0x08, 0xd3, 0xc9, 0x8a, 0x4c,
chris 35:061bc344e4ec 112 0x72, 0x1f, 0x8f, 0x45, 0xeb, 0xd8, 0xf3, 0x30,
chris 35:061bc344e4ec 113 0x0a, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d,
chris 35:061bc344e4ec 114 0x04, 0x03, 0x02, 0x30, 0x67, 0x31, 0x0b, 0x30,
chris 35:061bc344e4ec 115 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02,
chris 35:061bc344e4ec 116 0x47, 0x42, 0x31, 0x17, 0x30, 0x15, 0x06, 0x03,
chris 35:061bc344e4ec 117 0x55, 0x04, 0x08, 0x13, 0x0e, 0x43, 0x61, 0x6d,
chris 35:061bc344e4ec 118 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x68,
chris 35:061bc344e4ec 119 0x69, 0x72, 0x65, 0x31, 0x12, 0x30, 0x10, 0x06,
chris 35:061bc344e4ec 120 0x03, 0x55, 0x04, 0x07, 0x13, 0x09, 0x43, 0x61,
chris 35:061bc344e4ec 121 0x6d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x31,
chris 35:061bc344e4ec 122 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x0a,
chris 35:061bc344e4ec 123 0x13, 0x07, 0x41, 0x52, 0x4d, 0x20, 0x4c, 0x74,
chris 35:061bc344e4ec 124 0x64, 0x31, 0x19, 0x30, 0x17, 0x06, 0x03, 0x55,
chris 35:061bc344e4ec 125 0x04, 0x03, 0x13, 0x10, 0x41, 0x52, 0x4d, 0x20,
chris 35:061bc344e4ec 126 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61,
chris 35:061bc344e4ec 127 0x70, 0x20, 0x43, 0x41, 0x30, 0x20, 0x17, 0x0d,
chris 35:061bc344e4ec 128 0x31, 0x37, 0x30, 0x34, 0x30, 0x33, 0x31, 0x34,
chris 35:061bc344e4ec 129 0x30, 0x33, 0x33, 0x36, 0x5a, 0x18, 0x0f, 0x32,
chris 35:061bc344e4ec 130 0x30, 0x35, 0x32, 0x30, 0x34, 0x30, 0x33, 0x31,
chris 35:061bc344e4ec 131 0x34, 0x31, 0x33, 0x33, 0x36, 0x5a, 0x30, 0x67,
chris 35:061bc344e4ec 132 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
chris 35:061bc344e4ec 133 0x06, 0x13, 0x02, 0x47, 0x42, 0x31, 0x17, 0x30,
chris 35:061bc344e4ec 134 0x15, 0x06, 0x03, 0x55, 0x04, 0x08, 0x13, 0x0e,
chris 35:061bc344e4ec 135 0x43, 0x61, 0x6d, 0x62, 0x72, 0x69, 0x64, 0x67,
chris 35:061bc344e4ec 136 0x65, 0x73, 0x68, 0x69, 0x72, 0x65, 0x31, 0x12,
chris 35:061bc344e4ec 137 0x30, 0x10, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13,
chris 35:061bc344e4ec 138 0x09, 0x43, 0x61, 0x6d, 0x62, 0x72, 0x69, 0x64,
chris 35:061bc344e4ec 139 0x67, 0x65, 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03,
chris 35:061bc344e4ec 140 0x55, 0x04, 0x0a, 0x13, 0x07, 0x41, 0x52, 0x4d,
chris 35:061bc344e4ec 141 0x20, 0x4c, 0x74, 0x64, 0x31, 0x19, 0x30, 0x17,
chris 35:061bc344e4ec 142 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x10, 0x41,
chris 35:061bc344e4ec 143 0x52, 0x4d, 0x20, 0x42, 0x6f, 0x6f, 0x74, 0x73,
chris 35:061bc344e4ec 144 0x74, 0x72, 0x61, 0x70, 0x20, 0x43, 0x41, 0x30,
chris 35:061bc344e4ec 145 0x59, 0x30, 0x13, 0x06, 0x07, 0x2a, 0x86, 0x48,
chris 35:061bc344e4ec 146 0xce, 0x3d, 0x02, 0x01, 0x06, 0x08, 0x2a, 0x86,
chris 35:061bc344e4ec 147 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07, 0x03, 0x42,
chris 35:061bc344e4ec 148 0x00, 0x04, 0x3b, 0xd3, 0xfe, 0xb0, 0xd9, 0xa4,
chris 35:061bc344e4ec 149 0x72, 0xe1, 0x11, 0x11, 0x59, 0xba, 0x06, 0x2d,
chris 35:061bc344e4ec 150 0xf8, 0x26, 0xd5, 0x65, 0x98, 0xaa, 0xcf, 0x2a,
chris 35:061bc344e4ec 151 0x5f, 0xc6, 0x87, 0xa5, 0x6b, 0x0e, 0x30, 0x15,
chris 35:061bc344e4ec 152 0xe8, 0x12, 0x16, 0x49, 0x90, 0xe3, 0xf9, 0x3e,
chris 35:061bc344e4ec 153 0xf9, 0x3d, 0xde, 0xf5, 0x5a, 0x1f, 0x03, 0x44,
chris 35:061bc344e4ec 154 0xbb, 0x81, 0x7a, 0xc9, 0x71, 0x6d, 0x6c, 0xc2,
chris 35:061bc344e4ec 155 0x42, 0x3b, 0x55, 0xdb, 0x86, 0xad, 0x2c, 0xc0,
chris 35:061bc344e4ec 156 0xcf, 0xe4, 0xa3, 0x51, 0x30, 0x4f, 0x30, 0x0b,
chris 35:061bc344e4ec 157 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x04, 0x04, 0x03,
chris 35:061bc344e4ec 158 0x02, 0x01, 0x86, 0x30, 0x0f, 0x06, 0x03, 0x55,
chris 35:061bc344e4ec 159 0x1d, 0x13, 0x01, 0x01, 0xff, 0x04, 0x05, 0x30,
chris 35:061bc344e4ec 160 0x03, 0x01, 0x01, 0xff, 0x30, 0x1d, 0x06, 0x03,
chris 35:061bc344e4ec 161 0x55, 0x1d, 0x0e, 0x04, 0x16, 0x04, 0x14, 0x84,
chris 35:061bc344e4ec 162 0xc0, 0xf5, 0x82, 0xe9, 0x5d, 0xa5, 0xe0, 0xaa,
chris 35:061bc344e4ec 163 0x74, 0x6f, 0xf7, 0x81, 0x8f, 0x4b, 0xe8, 0x9e,
chris 35:061bc344e4ec 164 0xde, 0x5d, 0x80, 0x30, 0x10, 0x06, 0x09, 0x2b,
chris 35:061bc344e4ec 165 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x15, 0x01,
chris 35:061bc344e4ec 166 0x04, 0x03, 0x02, 0x01, 0x00, 0x30, 0x0a, 0x06,
chris 35:061bc344e4ec 167 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03,
chris 35:061bc344e4ec 168 0x02, 0x03, 0x48, 0x00, 0x30, 0x45, 0x02, 0x20,
chris 35:061bc344e4ec 169 0x19, 0x24, 0x0b, 0xc4, 0xac, 0x9d, 0x2b, 0x15,
chris 35:061bc344e4ec 170 0xf8, 0xc3, 0x0c, 0x0b, 0xf6, 0xac, 0xb3, 0xa1,
chris 35:061bc344e4ec 171 0xeb, 0x83, 0xfe, 0x1c, 0x4a, 0x96, 0x44, 0xc6,
chris 35:061bc344e4ec 172 0xa0, 0xbb, 0x56, 0x5c, 0x84, 0x13, 0xc9, 0x0f,
chris 35:061bc344e4ec 173 0x02, 0x21, 0x00, 0xbd, 0x89, 0x1c, 0x54, 0x98,
chris 35:061bc344e4ec 174 0xa5, 0xd0, 0x98, 0xc7, 0x0c, 0x08, 0x2f, 0xd9,
chris 35:061bc344e4ec 175 0x1b, 0xb8, 0x7e, 0xbf, 0x84, 0x3a, 0xfb, 0x8a,
chris 35:061bc344e4ec 176 0x43, 0x1a, 0x8e, 0xac, 0xdc, 0xa8, 0x66, 0x3d,
chris 35:061bc344e4ec 177 0xe3, 0xf9, 0xdc };
chris 35:061bc344e4ec 178
chris 35:061bc344e4ec 179 const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY[] =
chris 35:061bc344e4ec 180 { 0x30, 0x81, 0x93, 0x02, 0x01, 0x00, 0x30, 0x13,
chris 35:061bc344e4ec 181 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x02,
chris 35:061bc344e4ec 182 0x01, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d,
chris 35:061bc344e4ec 183 0x03, 0x01, 0x07, 0x04, 0x79, 0x30, 0x77, 0x02,
chris 35:061bc344e4ec 184 0x01, 0x01, 0x04, 0x20, 0x7b, 0x15, 0x66, 0xd3,
chris 35:061bc344e4ec 185 0xad, 0x5e, 0x07, 0xb8, 0x92, 0x8b, 0x9c, 0xd0,
chris 35:061bc344e4ec 186 0x09, 0xc0, 0xd1, 0xe4, 0x79, 0x3a, 0xc2, 0x41,
chris 35:061bc344e4ec 187 0xf7, 0x19, 0x28, 0xc9, 0x49, 0x59, 0xd8, 0x90,
chris 35:061bc344e4ec 188 0x5f, 0x45, 0xd4, 0xf2, 0xa0, 0x0a, 0x06, 0x08,
chris 35:061bc344e4ec 189 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07,
chris 35:061bc344e4ec 190 0xa1, 0x44, 0x03, 0x42, 0x00, 0x04, 0x25, 0x3d,
chris 35:061bc344e4ec 191 0x61, 0x99, 0xae, 0x5e, 0x87, 0x2a, 0x10, 0x97,
chris 35:061bc344e4ec 192 0x5f, 0xf5, 0x5e, 0x67, 0x8b, 0x66, 0xed, 0x74,
chris 35:061bc344e4ec 193 0x71, 0x10, 0x4e, 0xe4, 0xf2, 0x8a, 0x26, 0x29,
chris 35:061bc344e4ec 194 0x58, 0x76, 0xe7, 0x35, 0xf6, 0x63, 0x9d, 0x2b,
chris 35:061bc344e4ec 195 0xde, 0xef, 0xc1, 0xe8, 0x6d, 0xc0, 0x0d, 0xab,
chris 35:061bc344e4ec 196 0x34, 0x08, 0xe2, 0xfa, 0x7f, 0xa5, 0xb6, 0x14,
chris 35:061bc344e4ec 197 0xbb, 0x08, 0xce, 0x92, 0x52, 0x85, 0x6a, 0x0a,
chris 35:061bc344e4ec 198 0xa9, 0xcb, 0x7c, 0x78, 0x56, 0xa9 };
chris 35:061bc344e4ec 199
adustm 1:e86b1cffc402 200 const char MBED_CLOUD_DEV_MANUFACTURER[] = "dev_manufacturer";
chris 35:061bc344e4ec 201
adustm 1:e86b1cffc402 202 const char MBED_CLOUD_DEV_MODEL_NUMBER[] = "dev_model_num";
chris 35:061bc344e4ec 203
adustm 1:e86b1cffc402 204 const char MBED_CLOUD_DEV_SERIAL_NUMBER[] = "0";
chris 35:061bc344e4ec 205
adustm 1:e86b1cffc402 206 const char MBED_CLOUD_DEV_DEVICE_TYPE[] = "dev_device_type";
chris 35:061bc344e4ec 207
adustm 1:e86b1cffc402 208 const char MBED_CLOUD_DEV_HARDWARE_VERSION[] = "dev_hardware_version";
chris 35:061bc344e4ec 209
adustm 1:e86b1cffc402 210 const uint32_t MBED_CLOUD_DEV_MEMORY_TOTAL_KB = 0;
chris 35:061bc344e4ec 211
adustm 1:e86b1cffc402 212 const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE);
adustm 1:e86b1cffc402 213 const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE);
adustm 1:e86b1cffc402 214 const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY);
chris 35:061bc344e4ec 215
chris 35:061bc344e4ec 216 #endif //__MBED_CLOUD_DEV_CREDENTIALS_H__