K6xF board with BG96 of WIZnet for CatM1 board.

Dependencies:   FXAS21002 FXOS8700Q

This document is based on https://os.mbed.com/teams/NXP/code/pelion-example-frdm/

This code could be access via Cat.M1(BG96 module) of SK telecom network in Korea. Need a WIZnet BG96 board or can connect directly to M2Mnet BG96 module and development board.

board board

  • FRDM-K64F - onboard Ethernet and onboard SD card holder.
  • FRDM-K66F - onboard Ethernet and onboard SD card holder.

-------------------------------

/media/uploads/Daniel_Lee/small_pic.jpg /media/uploads/Daniel_Lee/screen_shot_2019-07-24_at_5.29.42_pm.jpg

  • BG96 RESET = D7
  • BG96 PWRKEY = D9
  • BG96 TX = D1
  • BG96 RX = D0
  • BG96 VCC = VCC(5V)
  • BG96 GND = GND

Requirement

Example functionality

This example showcases the following device functionality:

Read onboard FXOS8700Q accelerometer and magnetometer, and report the values as Pelion LWM2M resources (see image below). (FRDM-K66F only) Read onboard FXAS21002 gyroscope and report the values as Pelion LWM2M resources. 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.

1. Import the application into your desktop:

mbed import http://os.mbed.com/users/Daniel_Lee/code/BG96_K6xF_pelion-example-frdm/

 cd BG96_K6xF_pelion-example-frdm

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 the above command does not work for your Mbed CLI, please consider upgrading Mbed CLI to version 1.9.x or above.

4. Compile and program:

mbed compile -t <toolchain> -m <TARGET_BOARD>

(supported toolchains : GCC_ARM / ARM / IAR)

5. If successfully connect to cellular networks(SKTelecom) then you can get below message

[BOOT] Mbed Bootloader
[BOOT] ARM: 00000000000000000000
[BOOT] OEM: 00000000000000000000
[BOOT] Layout: 0 83A8
[BOOT] Active firmware integrity check:
[BOOT] SHA256: 2DD1793-----------------------------------------------------------------
[BOOT] Version: 1563983916
[BOOT] Slot 0 is empty
[BOOT] Active firmware up-to-date
[BOOT] Application's start address: 0x10400
[BOOT] Application's jump address: 0x10B11
[BOOT] Application's stack address: 0x20030000
[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 d.
M2Mnet(BG96) Power ON

Sensors configuration:
FXOS8700Q accelerometer = 0xC7
FXOS8700Q magnetometer  = 0xC7

Connecting to the network using the default network interface...
Connected to the network successfully. IP address: 000:000:000:000:000:000:000:0
Initializing Pelion Device Management Client...
Initialized Pelion Device Management Client. Registering...
Press the user button to increment the LwM2M resource value...
Registered to Pelion Device Management. Endpoint Name: "xx Your Endpoint Name xx"
*** Button notification, status Subscribed (6)

FXOS8700Q mag:   -2.426 x,  -0.902 y,  -1.611 z [gauss]
FXOS8700Q acc:   -0.054 x,  -0.309 y,   4.306 z [g]
Committer:
Daniel_Lee
Date:
Wed Jul 24 16:03:48 2019 +0000
Revision:
11:34e86cb4dd2f
Parent:
0:a9d53048f0b6
Added BG96 power on sequence

Who changed what in which revision?

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