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.

drivers/network/COMPONENT_WIFI_ISM43362/mbed_lib.json

Committer:
chuanga
Date:
2019-03-12
Revision:
0:43ff9e3bc244

File content as of revision 0:43ff9e3bc244:

{
    "name": "ism43362",
    "config": {
        "wifi-miso": {
            "help": "SPI-MISO connection to external device",
            "value": "NC"
        },
        "wifi-mosi": {
            "help": "SPI-MOSI connection to external device",
            "value": "NC"
        },
        "wifi-sclk": {
            "help": "SPI-CLOCK connection to external device",
            "value": "NC"
        },
        "wifi-nss": {
            "help": "SPI chip select of external device",
            "value": "NC"
        },
        "wifi-reset": {
            "help": "ISM43362 reset",
            "value": "NC"
        },
        "wifi-dataready": {
            "help": "ISM43362 dataready",
            "value": "NC"
        },
        "wifi-wakeup": {
            "help": "ISM43362 wakeup",
            "value": "NC"
        },
        "wifi-debug": {
            "help": "Defines whether logging is on or off",
            "value": false
        },
        "provide-default": {
            "help": "Provide default WifiInterface. [true/false]",
            "value": false
        }
    },
    "target_overrides": {
        "DISCO_F413ZH": {
            "ism43362.wifi-miso": "PB_4",
            "ism43362.wifi-mosi": "PB_5",
            "ism43362.wifi-sclk": "PB_12",
            "ism43362.wifi-nss": "PG_11",
            "ism43362.wifi-reset": "PH_1",
            "ism43362.wifi-dataready": "PG_12",
            "ism43362.wifi-wakeup": "PB_15",
            "ism43362.provide-default": true
        },
        "DISCO_L475VG_IOT01A": {
            "ism43362.wifi-miso": "PC_11",
            "ism43362.wifi-mosi": "PC_12",
            "ism43362.wifi-sclk": "PC_10",
            "ism43362.wifi-nss": "PE_0",
            "ism43362.wifi-reset": "PE_8",
            "ism43362.wifi-dataready": "PE_1",
            "ism43362.wifi-wakeup": "PB_13",
            "ism43362.provide-default": true
        }
     }
}