Mbed OS and Pelion Device Management example over WIFI for RHOMBIO_L476DMW1K IoT kit

You are viewing an older revision! See the latest version

Homepage

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

RHOMBIO_L476DMW1K over WiFI and using onboard QSPI flash.

Follow the Quick-Start instructions: https://cloud.mbed.com/quick-start

Example functionality

This example showcases the following device functionality:

  • Read onboard MCU ADC temperature and MCU ADC voltage reference, and report them as Pelion LWM2M resources (see image below).
  • 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.
  • External sensors can be easily added to the kit and then sensor readings reported as Pelion LWM2M resources.

Use this example with Mbed CLI

1. Import the application into your desktop:

mbed import https://os.mbed.com/teams/rhombio/code/pelion-example-rhombio-l476dmw1k

cd pelion-example-rhombio-l476dmw1k

2. Install the CLOUD_SDK_API_KEY

<<code title=mbed config -G CLOUD_SDK_API_KEY <PELION_DM_API_KEY>>
<</code>>

For instructions on how to generate your API key, please see the [[https://www.pelion.com/docs/device-management/current/integrate-web-app/api-keys.html#generating-an-api-key|documentation]].

3. Initialize firmware credentials (done once per repository). You can use the following command:

<<code title=mbed dm init -d "<your company name in Pelion DM>" --model-name "<product model identifier>" -q --force>>
<</code>>

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:

<<code title=mbed compile -t <toolchain> -m DISCO_L475VG_IOT01A>>
<</code>>

(supported toolchains : GCC_ARM / ARM / IAR)

5. You can connect on a virtual terminal/COM port to the platform using:

<<code title=mbed sterm -b 115200>>
<</code>>

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:

<<code title=mbed dm init -d "<your company name in Pelion DM>" --model-name "<product model identifier>" -q --force>>
<</code>>

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:

<<code title=mbed compile -t <toolchain> -m DISCO_L475VG_IOT01A>>
<</code>>

(supported toolchains : GCC_ARM / ARM / IAR)

5. You can connect on a virtual terminal/COM port to the platform using:

<<code title=mbed sterm -b 115200>>
<</code>>

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:

<<code title=mbed compile -t <toolchain> -m DISCO_L475VG_IOT01A>>
<</code>>

(supported toolchains : GCC_ARM / ARM / IAR)

5. You can connect on a virtual terminal/COM port to the platform using:

<<code title=mbed sterm -b 115200>>
<</code>>

(supported toolchains : GCC_ARM / ARM / IAR)

5. You can connect on a virtual terminal/COM port to the platform using:

<<code title=mbed sterm -b 115200>> <</code>>

This should give you an output similar to:


All wikipages