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 {
chuanga 0:43ff9e3bc244 2 "name": "esp32",
chuanga 0:43ff9e3bc244 3 "config": {
chuanga 0:43ff9e3bc244 4 "wifi-en": {
chuanga 0:43ff9e3bc244 5 "help": "Enable pin",
chuanga 0:43ff9e3bc244 6 "value": "NC"
chuanga 0:43ff9e3bc244 7 },
chuanga 0:43ff9e3bc244 8 "wifi-io0": {
chuanga 0:43ff9e3bc244 9 "help": "IO0 pin",
chuanga 0:43ff9e3bc244 10 "value": "NC"
chuanga 0:43ff9e3bc244 11 },
chuanga 0:43ff9e3bc244 12 "wifi-tx": {
chuanga 0:43ff9e3bc244 13 "help": "Serial TX pin",
chuanga 0:43ff9e3bc244 14 "value": "NC"
chuanga 0:43ff9e3bc244 15 },
chuanga 0:43ff9e3bc244 16 "wifi-rx": {
chuanga 0:43ff9e3bc244 17 "help": "Serial RX pin",
chuanga 0:43ff9e3bc244 18 "value": "NC"
chuanga 0:43ff9e3bc244 19 },
chuanga 0:43ff9e3bc244 20 "wifi-debug": {
chuanga 0:43ff9e3bc244 21 "help": "Enable debugging",
chuanga 0:43ff9e3bc244 22 "value": false
chuanga 0:43ff9e3bc244 23 },
chuanga 0:43ff9e3bc244 24 "wifi-rts": {
chuanga 0:43ff9e3bc244 25 "help": "Serial RTS pin",
chuanga 0:43ff9e3bc244 26 "value": "NC"
chuanga 0:43ff9e3bc244 27 },
chuanga 0:43ff9e3bc244 28 "wifi-cts": {
chuanga 0:43ff9e3bc244 29 "help": "Serial CTS pin",
chuanga 0:43ff9e3bc244 30 "value": "NC"
chuanga 0:43ff9e3bc244 31 },
chuanga 0:43ff9e3bc244 32 "wifi-baudrate": {
chuanga 0:43ff9e3bc244 33 "help": "Serial baudrate",
chuanga 0:43ff9e3bc244 34 "value": "230400"
chuanga 0:43ff9e3bc244 35 },
chuanga 0:43ff9e3bc244 36 "provide-default": {
chuanga 0:43ff9e3bc244 37 "help": "Provide default WifiInterface. [true/false]",
chuanga 0:43ff9e3bc244 38 "value": false
chuanga 0:43ff9e3bc244 39 }
chuanga 0:43ff9e3bc244 40 },
chuanga 0:43ff9e3bc244 41 "target_overrides": {
chuanga 0:43ff9e3bc244 42 "GR_LYCHEE": {
chuanga 0:43ff9e3bc244 43 "esp32.wifi-en" : "P5_3",
chuanga 0:43ff9e3bc244 44 "esp32.wifi-io0": "P3_14",
chuanga 0:43ff9e3bc244 45 "esp32.wifi-tx" : "P7_1",
chuanga 0:43ff9e3bc244 46 "esp32.wifi-rx" : "P0_1",
chuanga 0:43ff9e3bc244 47 "esp32.wifi-rts": "P7_7",
chuanga 0:43ff9e3bc244 48 "esp32.wifi-cts": "P7_6",
chuanga 0:43ff9e3bc244 49 "esp32.provide-default": true
chuanga 0:43ff9e3bc244 50 },
chuanga 0:43ff9e3bc244 51 "RZ_A1H": {
chuanga 0:43ff9e3bc244 52 "esp32.wifi-en" : "P3_10",
chuanga 0:43ff9e3bc244 53 "esp32.wifi-io0": "P3_9",
chuanga 0:43ff9e3bc244 54 "esp32.wifi-tx" : "P2_14",
chuanga 0:43ff9e3bc244 55 "esp32.wifi-rx" : "P2_15"
chuanga 0:43ff9e3bc244 56 }
chuanga 0:43ff9e3bc244 57 }
chuanga 0:43ff9e3bc244 58 }