-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from ARMmbed/release-4.5.0
mbed-cloud-client-example 4.5.0
- Loading branch information
Showing
94 changed files
with
7,349 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Validation and testing for the client configuration with Pelion end-to-end python test library | ||
|
||
Basic requirements for Pelion capabilities: | ||
|
||
- Connects to Pelion in developer mode. | ||
- Firmware can be updated. | ||
- Responsive to REST API commands. | ||
|
||
Installation of the test-library: | ||
|
||
- Install the prerequisites listed in the README of the [pelion-e2e-python-test-library](https://github.com/ARMmbed/pelion-e2e-python-test-library). | ||
- Configure your API-key as instructed in the same README. | ||
|
||
|
||
Basic tests can be then executed as: | ||
|
||
`pytest TESTS/pelion-e2e-python-test-library/tests/dev-client-tests.py --update_bin=/home/user/mbed-cloud-client-example/mbed-cloud-client-example_update.bin` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
https://github.com/ARMmbed/pelion-e2e-python-test-library/#d1fc79b17c9b6e0707dbf7ce36a75a6576b089b6 | ||
https://github.com/ARMmbed/pelion-e2e-python-test-library/#39e118e03dc89f1800922f3a91d219b25c45cb1a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
include(${CMAKE_SOURCE_DIR}/define_NXP_LPC54628.txt) | ||
|
||
add_definitions(-DMBED_CLOUD_CLIENT_SUPPORT_UPDATE) | ||
|
||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_APPLICATION_DETAILS=0x8000) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_ADDRESS=0x20000) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_SIZE=0x70000) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS=1) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_PAGE=4) | ||
|
||
add_definitions(-DMBED_CONF_MBED_CLOUD_CLIENT_UPDATE_DOWNLOAD_PROTOCOL=MBED_CLOUD_CLIENT_UPDATE_DOWNLOAD_PROTOCOL_COAP) | ||
add_definitions(-DMBED_CONF_APP_MBED_CLOUD_CLIENT_UPDATE_BUFFER_SIZE=2048) | ||
|
||
add_definitions(-DMBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP_BLOCKDEVICE) | ||
add_definitions(-DUPDATE_CLIENT_STORAGE_FLASHIAP_BLOCKDEVICE) | ||
add_definitions(-DARM_UC_PROFILE_MBED_CLOUD_CLIENT=1) | ||
add_definitions(-DARM_UC_FEATURE_DELTA_PAAL=0) | ||
add_definitions(-DARM_UC_FEATURE_PAL_BLOCKDEVICE=1) | ||
add_definitions(-DARM_UC_USE_PAL_BLOCKDEVICE=1) | ||
add_definitions(-DMBED_CLOUD_CLIENT_SUPPORT_UPDATE) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_ADDRESS=0x20000) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS=1) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_PAGE=1) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_SIZE=0x80000) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_APPLICATION_DETAILS=0x8000) | ||
add_definitions(-DATOMIC_QUEUE_USE_PAL=1) | ||
add_definitions(-DPAL_USE_FILESYSTEM=0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
if (NOT (${OS_BRAND} MATCHES "NXP")) | ||
message(FATAL_ERROR "define_NXP.txt to be used only with NXP builds.") | ||
endif() | ||
|
||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../) | ||
|
||
add_definitions(-DMBED_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\") | ||
add_definitions(-DMBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\") | ||
add_definitions(-DPAL_USER_DEFINED_CONFIGURATION=\"pal_config_NXP.h\") | ||
if (EXISTS ${NEW_CMAKE_SOURCE_DIR}/../../../../middleware/arm-pelion/mbed-cloud-client/mbed-client-pal/Configs/${TLS_LIBRARY}) | ||
SET(PAL_TLS_BSP_DIR ${NEW_CMAKE_SOURCE_DIR}/../../../../middleware/arm-pelion/mbed-cloud-client/mbed-client-pal/Configs/${TLS_LIBRARY}) | ||
else() | ||
SET(PAL_TLS_BSP_DIR ${NEW_CMAKE_SOURCE_DIR}/mbed-cloud-client/mbed-client-pal/Configs/${TLS_LIBRARY}) | ||
endif() | ||
add_definitions(-DMBEDTLS_CONFIG_FILE=\"${PAL_TLS_BSP_DIR}/mbedTLSConfig_${OS_BRAND}.h\") | ||
|
||
if(PAL_SIMULATOR_FILE_SYSTEM_OVER_RAM) | ||
message(WARNING "You are using simulation of File System over RAM") | ||
add_definitions(-DPAL_SIMULATOR_FILE_SYSTEM_OVER_RAM=${PAL_SIMULATOR_FILE_SYSTEM_OVER_RAM}) | ||
endif(PAL_SIMULATOR_FILE_SYSTEM_OVER_RAM) | ||
|
||
add_definitions(-DMBED_CONF_NS_HAL_PAL_EVENT_LOOP_THREAD_STACK_SIZE=8000) | ||
add_definitions(-DPAL_SEMAPHORE_MAX_COUNT=4096) | ||
add_definitions(-DPAL_DTLS_PEER_MIN_TIMEOUT=5000) | ||
add_definitions(-DCOMPONENT_FLASHIAP) | ||
add_definitions(-DFLASHIAP_APP_ROM_END_ADDR=0x60400000) | ||
|
||
add_definitions(-DMBED_CONF_STORAGE_STORAGE_TYPE=TDB_INTERNAL) | ||
add_definitions(-DMBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS=0x607F0000) | ||
add_definitions(-DMBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE=0x10000) | ||
|
||
add_definitions(-DMBED_CONF_MBED_CLOUD_CLIENT_EXTERNAL_SST_SUPPORT=1) | ||
#add_definitions(-DMBED_CONF_MBED_CLOUD_CLIENT_DISABLE_CERTIFICATE_ENROLLMENT=1) | ||
|
||
# Disable application features to minimize flash size. | ||
add_definitions(-DDISABLE_ERROR_DESCRIPTION) | ||
#add_definitions(-DMCC_MEMORY) | ||
|
||
# Set to 1 to enable tracing | ||
add_definitions(-DMBED_CONF_MBED_TRACE_ENABLE=0) | ||
add_definitions(-DMBED_TRACE_MAX_LEVEL=TRACE_LEVEL_ERROR) | ||
|
||
add_definitions(-DMBED_CONF_APP_DEVELOPER_MODE=1) | ||
|
||
add_definitions(-DPLATFORM_ENABLE_BUTTON=1) | ||
add_definitions(-DPLATFORM_ENABLE_LED=1) | ||
|
||
##### PORT TESTS ##### | ||
add_definitions(-DPAL_SKIP_TEST_MODULE_SOTP=1) | ||
add_definitions(-DPAL_SKIP_TEST_MODULE_FILESYSTEM=1) | ||
add_definitions(-DPAL_SKIP_TEST_MODULE_INTERNALFLASH=1) | ||
add_definitions(-DPAL_SKIP_TEST_MODULE_UPDATE=1) | ||
add_definitions(-DPAL_SKIP_TEST_MODULE_ROT=1) | ||
add_definitions(-DPAL_SKIP_TEST_MODULE_DRBG=1) | ||
add_definitions(-DPAL_SKIP_TEST_MODULE_TIME=1) | ||
add_definitions(-DPAL_SKIP_TEST_MODULE_CRYPTO=1) | ||
add_definitions(-DPAL_SKIP_TEST_MODULE_TLS=1) | ||
add_definitions(-DPAL_SKIP_TEST_MODULE_SST=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
include(${CMAKE_SOURCE_DIR}/define_NXP_MIMXRT1060.txt) | ||
|
||
add_definitions(-DMBED_CLOUD_CLIENT_SUPPORT_UPDATE) | ||
|
||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_APPLICATION_DETAILS=0x60010000) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_ADDRESS=0x60400000) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_SIZE=0x3F0000) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS=1) | ||
add_definitions(-DMBED_CONF_UPDATE_CLIENT_STORAGE_PAGE=256) | ||
|
||
add_definitions(-DMBED_CONF_MBED_CLOUD_CLIENT_UPDATE_DOWNLOAD_PROTOCOL=MBED_CLOUD_CLIENT_UPDATE_DOWNLOAD_PROTOCOL_COAP) | ||
add_definitions(-DMBED_CONF_APP_MBED_CLOUD_CLIENT_UPDATE_BUFFER_SIZE=2048) | ||
|
||
add_definitions(-DMBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP) | ||
add_definitions(-DUPDATE_CLIENT_STORAGE_FLASHIAP) | ||
add_definitions(-DARM_UC_PROFILE_MBED_CLOUD_CLIENT=1) | ||
add_definitions(-DARM_UC_FEATURE_DELTA_PAAL=0) | ||
add_definitions(-DARM_UC_FEATURE_PAL_FLASHIAP=1) | ||
add_definitions(-DATOMIC_QUEUE_USE_PAL=1) | ||
add_definitions(-DPAL_USE_FILESYSTEM=0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
https://github.com/ARMmbed/mbed-os-atecc608a/#a8d7e1e0358381a6a1640e1e6e13477db87927ee | ||
https://github.com/ARMmbed/mbed-os-atecc608a/#cf9a33c5b6c489f24d04e5d2ac6c3a49f4064117 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
https://github.com/ARMmbed/mbed-cloud-client/#e03c516af9c9137b56d9c2620a293c79f1f867f8 | ||
https://github.com/ARMmbed/mbed-cloud-client/#4fc8a9c027623f2f7722ea0b2d475e7772352f6d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.