Skip to content

Commit 25d5b62

Browse files
authored
Merge pull request #155 from ARMmbed/manifest-v2_1_0
Manifest tool v2.1.1
2 parents 3206bba + e4d7b03 commit 25d5b62

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
lines changed

README.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,9 @@ This section is intended for developers to get started, import the example appli
5151

5252
For instructions on installing and using Mbed CLI, please see our [documentation](https://os.mbed.com/docs/mbed-os/latest/tools/developing-mbed-cli.html).
5353

54-
- Install the `CLOUD_SDK_API_KEY`
54+
- Generate your own access key. Pelion Device Management is available for any Mbed developer. Create a [free trial](https://os.mbed.com/pelion-free-tier).
5555

56-
`mbed config -G CLOUD_SDK_API_KEY ak_1MDE1...<snip>`
57-
58-
You should generate your own API key. Pelion Device Management is available for any Mbed developer. Create a [free trial](https://os.mbed.com/pelion-free-tier).
59-
60-
For instructions on how to generate your API key, please see our [documentation](https://cloud.mbed.com/docs/current/integrate-web-app/api-keys.html#generating-an-api-key).
56+
For instructions on how to generate your access key, please see our [documentation](https://developer.pelion.com/docs/device-management/current/user-account/application-access-keys.html).
6157

6258
## Deploying
6359

@@ -68,11 +64,37 @@ This repository is in the process of being updated and depends on few enhancemen
6864
cd mbed-os-example-pelion
6965
```
7066

71-
## Compiling
67+
## Preparing for build
7268

69+
1. Configure Mbed CLI defaults:
70+
```
7371
mbed target K64F
7472
mbed toolchain GCC_ARM
75-
mbed device-management init -d arm.com --model-name example-app --force -q
73+
```
74+
75+
1. Download the developer certificates from the [Device Management Portal](https://portal.mbedcloud.com//):
76+
1. Log in to the portal with your credentials.
77+
1. Navigate to **Device identity** > **Certificates**.
78+
1. Click **New certificate**.
79+
1. Add a name and an optional description for the certificate, and click **Create certificate**.
80+
1. Go to **Device identity** > **Certificates** again.
81+
1. Click on your new certificate.
82+
1. Click **Download developer C file** to download the file `mbed_cloud_dev_credentials.c`.
83+
84+
1. Copy the `mbed_cloud_dev_credentials.c` file to the root folder of the example.
85+
86+
1. Use `manifest-tool` python package to create an update-related configuration for your device:
87+
1. Upgrade to `manifest-tool` >= `2.1.1`:
88+
```
89+
pip install --upgrade manifest-tool
90+
```
91+
1. Initialize the developer environment:
92+
```
93+
manifest-dev-tool init --access-key <Device Management access key>
94+
```
95+
96+
## Compiling
97+
7698
mbed compile
7799
78100
## Program Flow
@@ -338,7 +360,7 @@ Basic pelion features are required to work:
338360
This should be verified by executing the Pelion E2E python test library tests.
339361
340362
- Install the prerequisites listed in the README of the [pelion-e2e-python-test-library](https://github.com/ARMmbed/pelion-e2e-python-test-library).
341-
- Configure your API-key as instructed in the same README.
363+
- Configure your access key as instructed in the same README.
342364
- Basic tests can be then executed as:
343365
344366
`pytest TESTS/pelion-e2e-python-test-library/tests/dev-client-tests.py --update_bin=/home/user/mbed-os-example-pelion/mbed-os-example-pelion_update.bin`
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/ARMmbed/pelion-e2e-python-test-library/#39e118e03dc89f1800922f3a91d219b25c45cb1a
1+
https://github.com/ARMmbed/pelion-e2e-python-test-library/#b1254f39b5d4fe4a5805642f109bd6d6f27adaaa

0 commit comments

Comments
 (0)