Generic Pelion Device Management example for various short range U-blox-based boards.
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 great on the following platforms:
- UBLOX_EVK_ODIN_W2 over WiFI and using SD card.
Follow the Quick-Start instructions: https://cloud.mbed.com/quick-start
Example functionality
This example showcases the following device functionality:
- 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.
- (currently disabled)
Read ADC temperature and ADC vref, and report them as Pelion LWM2M resources.
Use this example with Mbed CLI
1. Import the application into your desktop:
mbed import https://os.mbed.com/teams/ublox/code/pelion-example-common-odinw2 cd pelion-example-common-odinw2
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 <TARGET_BOARD>
(supported toolchains : GCC_ARM / ARM / IAR)
bootloader/LICENSE@3:fd659f991dc9, 2019-10-04 (annotated)
- Committer:
- fahimalavi
- Date:
- Fri Oct 04 18:56:50 2019 +0500
- Revision:
- 3:fd659f991dc9
- Parent:
- 0:7e9105051efa
Reverting invalid commit during merge
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fahimalavi | 0:7e9105051efa | 1 | Permissive Binary License |
fahimalavi | 0:7e9105051efa | 2 | |
fahimalavi | 0:7e9105051efa | 3 | Version 1.0, September 2015 |
fahimalavi | 0:7e9105051efa | 4 | |
fahimalavi | 0:7e9105051efa | 5 | Redistribution. Redistribution and use in binary form, without |
fahimalavi | 0:7e9105051efa | 6 | modification, are permitted provided that the following conditions are |
fahimalavi | 0:7e9105051efa | 7 | met: |
fahimalavi | 0:7e9105051efa | 8 | |
fahimalavi | 0:7e9105051efa | 9 | 1) Redistributions must reproduce the above copyright notice and the |
fahimalavi | 0:7e9105051efa | 10 | following disclaimer in the documentation and/or other materials |
fahimalavi | 0:7e9105051efa | 11 | provided with the distribution. |
fahimalavi | 0:7e9105051efa | 12 | |
fahimalavi | 0:7e9105051efa | 13 | 2) Unless to the extent explicitly permitted by law, no reverse |
fahimalavi | 0:7e9105051efa | 14 | engineering, decompilation, or disassembly of this software is |
fahimalavi | 0:7e9105051efa | 15 | permitted. |
fahimalavi | 0:7e9105051efa | 16 | |
fahimalavi | 0:7e9105051efa | 17 | 3) Redistribution as part of a software development kit must include the |
fahimalavi | 0:7e9105051efa | 18 | accompanying file named "DEPENDENCIES" and any dependencies listed in |
fahimalavi | 0:7e9105051efa | 19 | that file. |
fahimalavi | 0:7e9105051efa | 20 | |
fahimalavi | 0:7e9105051efa | 21 | 4) Neither the name of the copyright holder nor the names of its |
fahimalavi | 0:7e9105051efa | 22 | contributors may be used to endorse or promote products derived from |
fahimalavi | 0:7e9105051efa | 23 | this software without specific prior written permission. |
fahimalavi | 0:7e9105051efa | 24 | |
fahimalavi | 0:7e9105051efa | 25 | Limited patent license. The copyright holders (and contributors) grant a |
fahimalavi | 0:7e9105051efa | 26 | worldwide, non-exclusive, no-charge, royalty-free patent license to |
fahimalavi | 0:7e9105051efa | 27 | make, have made, use, offer to sell, sell, import, and otherwise |
fahimalavi | 0:7e9105051efa | 28 | transfer this software, where such license applies only to those patent |
fahimalavi | 0:7e9105051efa | 29 | claims licensable by the copyright holders (and contributors) that are |
fahimalavi | 0:7e9105051efa | 30 | necessarily infringed by this software. This patent license shall not |
fahimalavi | 0:7e9105051efa | 31 | apply to any combinations that include this software. No hardware is |
fahimalavi | 0:7e9105051efa | 32 | licensed hereunder. |
fahimalavi | 0:7e9105051efa | 33 | |
fahimalavi | 0:7e9105051efa | 34 | If you institute patent litigation against any entity (including a |
fahimalavi | 0:7e9105051efa | 35 | cross-claim or counterclaim in a lawsuit) alleging that the software |
fahimalavi | 0:7e9105051efa | 36 | itself infringes your patent(s), then your rights granted under this |
fahimalavi | 0:7e9105051efa | 37 | license shall terminate as of the date such litigation is filed. |
fahimalavi | 0:7e9105051efa | 38 | |
fahimalavi | 0:7e9105051efa | 39 | DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
fahimalavi | 0:7e9105051efa | 40 | CONTRIBUTORS "AS IS." ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT |
fahimalavi | 0:7e9105051efa | 41 | NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
fahimalavi | 0:7e9105051efa | 42 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
fahimalavi | 0:7e9105051efa | 43 | HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
fahimalavi | 0:7e9105051efa | 44 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED |
fahimalavi | 0:7e9105051efa | 45 | TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
fahimalavi | 0:7e9105051efa | 46 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
fahimalavi | 0:7e9105051efa | 47 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
fahimalavi | 0:7e9105051efa | 48 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
fahimalavi | 0:7e9105051efa | 49 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |