Generic Pelion Device Management example for various Renesas-based boards. Add camera function.
Base software : https://os.mbed.com/teams/Renesas/code/pelion-example-common/
This example is known to work great on the following platforms:
- Renesas GR-LCYHEE over Wi-Fi and using SD card.
Example functionality
This example showcases the following device functionality:
- 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.
- On user button click, update Pelion LWM2M camera_img resource.
Camera image resource
- "5000/0/1", "camera_img", GET : Get the last saved camera image
- "5000/0/3", "camera_action", POST : Save camera image
Diff: bootloader/bootloader_app.json
- Revision:
- 2:a5b5f3df19e8
- Parent:
- 0:6d2053b84a92
--- a/bootloader/bootloader_app.json Sat Dec 15 12:50:12 2018 +0900 +++ b/bootloader/bootloader_app.json Wed Dec 26 12:30:48 2018 +0900 @@ -49,6 +49,21 @@ "update-client.storage-locations" : 1, "update-client.firmware-header-version": "2" }, + "RZ_A1H": { + "flash-start-address" : "0x18000000", + "flash-size" : "(8*1024*1024)", + "nvstore.area_1_address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(4*1024))", + "nvstore.area_1_size" : "(4*1024)", + "nvstore.area_2_address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(4*1024))", + "nvstore.area_2_size" : "(4*1024)", + "update-client.application-details": "(MBED_CONF_APP_FLASH_START_ADDRESS+64*1024)", + "application-start-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS+65*1024)", + "max-application-size" : "DEFAULT_MAX_APPLICATION_SIZE", + "sd.SPI_MOSI": "P8_5", + "sd.SPI_MISO": "P8_6", + "sd.SPI_CLK": "P8_3", + "sd.SPI_CS": "P8_4" + }, "GR_LYCHEE": { "flash-start-address" : "0x18000000", "flash-size" : "(8*1024*1024)",