Generic Pelion Device Management example for various Advantech modules.
This example is known to work great on the following platforms:
- WISE-1530 WiFi Module using DB-1505 carrier board and external SD card reader.
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@0:43ff9e3bc244, 2019-03-12 (annotated)
- 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?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| chuanga | 0:43ff9e3bc244 | 1 | { |
| chuanga | 0:43ff9e3bc244 | 2 | "name": "ism43362", |
| chuanga | 0:43ff9e3bc244 | 3 | "config": { |
| chuanga | 0:43ff9e3bc244 | 4 | "wifi-miso": { |
| chuanga | 0:43ff9e3bc244 | 5 | "help": "SPI-MISO connection to external device", |
| chuanga | 0:43ff9e3bc244 | 6 | "value": "NC" |
| chuanga | 0:43ff9e3bc244 | 7 | }, |
| chuanga | 0:43ff9e3bc244 | 8 | "wifi-mosi": { |
| chuanga | 0:43ff9e3bc244 | 9 | "help": "SPI-MOSI connection to external device", |
| chuanga | 0:43ff9e3bc244 | 10 | "value": "NC" |
| chuanga | 0:43ff9e3bc244 | 11 | }, |
| chuanga | 0:43ff9e3bc244 | 12 | "wifi-sclk": { |
| chuanga | 0:43ff9e3bc244 | 13 | "help": "SPI-CLOCK connection to external device", |
| chuanga | 0:43ff9e3bc244 | 14 | "value": "NC" |
| chuanga | 0:43ff9e3bc244 | 15 | }, |
| chuanga | 0:43ff9e3bc244 | 16 | "wifi-nss": { |
| chuanga | 0:43ff9e3bc244 | 17 | "help": "SPI chip select of external device", |
| chuanga | 0:43ff9e3bc244 | 18 | "value": "NC" |
| chuanga | 0:43ff9e3bc244 | 19 | }, |
| chuanga | 0:43ff9e3bc244 | 20 | "wifi-reset": { |
| chuanga | 0:43ff9e3bc244 | 21 | "help": "ISM43362 reset", |
| chuanga | 0:43ff9e3bc244 | 22 | "value": "NC" |
| chuanga | 0:43ff9e3bc244 | 23 | }, |
| chuanga | 0:43ff9e3bc244 | 24 | "wifi-dataready": { |
| chuanga | 0:43ff9e3bc244 | 25 | "help": "ISM43362 dataready", |
| chuanga | 0:43ff9e3bc244 | 26 | "value": "NC" |
| chuanga | 0:43ff9e3bc244 | 27 | }, |
| chuanga | 0:43ff9e3bc244 | 28 | "wifi-wakeup": { |
| chuanga | 0:43ff9e3bc244 | 29 | "help": "ISM43362 wakeup", |
| chuanga | 0:43ff9e3bc244 | 30 | "value": "NC" |
| chuanga | 0:43ff9e3bc244 | 31 | }, |
| chuanga | 0:43ff9e3bc244 | 32 | "wifi-debug": { |
| chuanga | 0:43ff9e3bc244 | 33 | "help": "Defines whether logging is on or off", |
| chuanga | 0:43ff9e3bc244 | 34 | "value": false |
| 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 | "DISCO_F413ZH": { |
| chuanga | 0:43ff9e3bc244 | 43 | "ism43362.wifi-miso": "PB_4", |
| chuanga | 0:43ff9e3bc244 | 44 | "ism43362.wifi-mosi": "PB_5", |
| chuanga | 0:43ff9e3bc244 | 45 | "ism43362.wifi-sclk": "PB_12", |
| chuanga | 0:43ff9e3bc244 | 46 | "ism43362.wifi-nss": "PG_11", |
| chuanga | 0:43ff9e3bc244 | 47 | "ism43362.wifi-reset": "PH_1", |
| chuanga | 0:43ff9e3bc244 | 48 | "ism43362.wifi-dataready": "PG_12", |
| chuanga | 0:43ff9e3bc244 | 49 | "ism43362.wifi-wakeup": "PB_15", |
| chuanga | 0:43ff9e3bc244 | 50 | "ism43362.provide-default": true |
| chuanga | 0:43ff9e3bc244 | 51 | }, |
| chuanga | 0:43ff9e3bc244 | 52 | "DISCO_L475VG_IOT01A": { |
| chuanga | 0:43ff9e3bc244 | 53 | "ism43362.wifi-miso": "PC_11", |
| chuanga | 0:43ff9e3bc244 | 54 | "ism43362.wifi-mosi": "PC_12", |
| chuanga | 0:43ff9e3bc244 | 55 | "ism43362.wifi-sclk": "PC_10", |
| chuanga | 0:43ff9e3bc244 | 56 | "ism43362.wifi-nss": "PE_0", |
| chuanga | 0:43ff9e3bc244 | 57 | "ism43362.wifi-reset": "PE_8", |
| chuanga | 0:43ff9e3bc244 | 58 | "ism43362.wifi-dataready": "PE_1", |
| chuanga | 0:43ff9e3bc244 | 59 | "ism43362.wifi-wakeup": "PB_13", |
| chuanga | 0:43ff9e3bc244 | 60 | "ism43362.provide-default": true |
| chuanga | 0:43ff9e3bc244 | 61 | } |
| chuanga | 0:43ff9e3bc244 | 62 | } |
| chuanga | 0:43ff9e3bc244 | 63 | } |