Generic Pelion Device Management example for various Advantech modules.

This example is known to work great on the following platforms:

Example Functionality

This example showcases the following device functionality:

  • On timer button increment, simulate Pelion LWM2M button resource change

Use this example with Mbed CLI

1. Import the application into your desktop:

mbed import https://os.mbed.com/teams/Advantech/code/pelion-example-common
cd pelion-example-common

2. Download your developer certificate from pelion portal

3. Compile the program

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

(supported toolchains : GCC_ARM / ARM / IAR)

4. Copy the binary file pelion-example-common.bin to your mbed device.

Committer:
chuanga
Date:
Tue Mar 12 13:48:39 2019 +0800
Revision:
0:43ff9e3bc244
copying sources from github repository

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chuanga 0:43ff9e3bc244 1 Permissive Binary License
chuanga 0:43ff9e3bc244 2
chuanga 0:43ff9e3bc244 3 Version 1.0, September 2015
chuanga 0:43ff9e3bc244 4
chuanga 0:43ff9e3bc244 5 Redistribution. Redistribution and use in binary form, without
chuanga 0:43ff9e3bc244 6 modification, are permitted provided that the following conditions are
chuanga 0:43ff9e3bc244 7 met:
chuanga 0:43ff9e3bc244 8
chuanga 0:43ff9e3bc244 9 1) Redistributions must reproduce the above copyright notice and the
chuanga 0:43ff9e3bc244 10 following disclaimer in the documentation and/or other materials
chuanga 0:43ff9e3bc244 11 provided with the distribution.
chuanga 0:43ff9e3bc244 12
chuanga 0:43ff9e3bc244 13 2) Unless to the extent explicitly permitted by law, no reverse
chuanga 0:43ff9e3bc244 14 engineering, decompilation, or disassembly of this software is
chuanga 0:43ff9e3bc244 15 permitted.
chuanga 0:43ff9e3bc244 16
chuanga 0:43ff9e3bc244 17 3) Redistribution as part of a software development kit must include the
chuanga 0:43ff9e3bc244 18 accompanying file named "DEPENDENCIES" and any dependencies listed in
chuanga 0:43ff9e3bc244 19 that file.
chuanga 0:43ff9e3bc244 20
chuanga 0:43ff9e3bc244 21 4) Neither the name of the copyright holder nor the names of its
chuanga 0:43ff9e3bc244 22 contributors may be used to endorse or promote products derived from
chuanga 0:43ff9e3bc244 23 this software without specific prior written permission.
chuanga 0:43ff9e3bc244 24
chuanga 0:43ff9e3bc244 25 Limited patent license. The copyright holders (and contributors) grant a
chuanga 0:43ff9e3bc244 26 worldwide, non-exclusive, no-charge, royalty-free patent license to
chuanga 0:43ff9e3bc244 27 make, have made, use, offer to sell, sell, import, and otherwise
chuanga 0:43ff9e3bc244 28 transfer this software, where such license applies only to those patent
chuanga 0:43ff9e3bc244 29 claims licensable by the copyright holders (and contributors) that are
chuanga 0:43ff9e3bc244 30 necessarily infringed by this software. This patent license shall not
chuanga 0:43ff9e3bc244 31 apply to any combinations that include this software. No hardware is
chuanga 0:43ff9e3bc244 32 licensed hereunder.
chuanga 0:43ff9e3bc244 33
chuanga 0:43ff9e3bc244 34 If you institute patent litigation against any entity (including a
chuanga 0:43ff9e3bc244 35 cross-claim or counterclaim in a lawsuit) alleging that the software
chuanga 0:43ff9e3bc244 36 itself infringes your patent(s), then your rights granted under this
chuanga 0:43ff9e3bc244 37 license shall terminate as of the date such litigation is filed.
chuanga 0:43ff9e3bc244 38
chuanga 0:43ff9e3bc244 39 DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
chuanga 0:43ff9e3bc244 40 CONTRIBUTORS "AS IS." ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
chuanga 0:43ff9e3bc244 41 NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
chuanga 0:43ff9e3bc244 42 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
chuanga 0:43ff9e3bc244 43 HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
chuanga 0:43ff9e3bc244 44 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
chuanga 0:43ff9e3bc244 45 TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
chuanga 0:43ff9e3bc244 46 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
chuanga 0:43ff9e3bc244 47 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
chuanga 0:43ff9e3bc244 48 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
chuanga 0:43ff9e3bc244 49 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.