Skip to content

Reduced configuration continued #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

teetak01
Copy link
Contributor

@teetak01 teetak01 commented Jul 1, 2019

No description provided.

Copy link

@MarceloSalazar MarceloSalazar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is looking good. Just a minor question for now.

@teetak01
Copy link
Contributor Author

teetak01 commented Jul 1, 2019

Added E2E-tests:

icetea --suite basic_os_tests.json --suitedir TESTS --tcdir ./TESTS --tc_cfg TESTS/pelion.tc_cfg --type hardware --reset

+----------------------+---------+--------------------------------------------+-------------+-----------+-----------+
| Testcase             | Verdict |                Fail Reason                 | Skip Reason | platforms |  duration |
+----------------------+---------+--------------------------------------------+-------------+-----------+-----------+
| register_and_read_id |   pass  |                                            |             |    K64F   | 22.686142 |
| get                  |   pass  |                                            |             |           |  6.217801 |
| put                  |   pass  |                                            |             |           |  6.639619 |
| post                 |   pass  |                                            |             |           |  6.289506 |
| observation          |   pass  |                                            |             |           |  7.901215 |
| deregister           |   fail  | POST request failed with 400 and msg (400) |             |           | 35.730681 |
|                      |         |             Reason: Bad Reque              |             |           |           |
+----------------------+---------+--------------------------------------------+-------------+-----------+-----------+
+---------------+----------------+
|    Summary    |                |
+---------------+----------------+
| Final Verdict |      FAIL      |
|     count     |       6        |
|    passrate   |    83.33 %     |
|      pass     |       5        |
|      fail     |       1        |
|    Duration   | 0:01:25.464964 |
+---------------+----------------+

One test failing because there is no Unregister feature. Either we could drop this test, or add the resource for that functionality.

@yogpan01
Copy link
Contributor

yogpan01 commented Jul 1, 2019

We need to add Update test case to the automated suite. Also, unregister is a good test case to be added in order to remove the registration from Portal and not leave any hanging devices in the Cloud.

@yogpan01 yogpan01 force-pushed the reduced-configuration-continued branch from 252ba9c to 86facf0 Compare July 1, 2019 15:08
teetak01 added 10 commits July 2, 2019 08:01
* All platforms will use hardcoded entropy injection. This is needed
only for non-TRNG boards, but for code simplicity, do it for all.
* Accept also CA_CERT existing error from fcc_developer() API.
Make Blocksize to be 512 KiB and update buffer 1 KiB by default.

This saves some RAM and 512 is going to be the client default
in future.
@teetak01 teetak01 force-pushed the reduced-configuration-continued branch from 86facf0 to 3b8e47e Compare July 2, 2019 06:38
teetak01 added 2 commits July 2, 2019 10:32
* Seperate functions for deregister callback and deregister handling.
* Refactored the logic for handling shutdown.
* Bring down network as part of shutdown.
@teetak01 teetak01 merged commit db712dd into ARMmbed:reduced-configuration Jul 4, 2019
teetak01 added a commit that referenced this pull request Jul 5, 2019
* Simplify trace usage

* Cleanup: remove unnessary carriage returns from printfs

* Remove update authorize

This is default behaviour for Update client.

* Print IP

* Handle fcc_init errors

* Cleanup tracing

* Fix default certificate template

* Cleanup default configurations

SST is enabled by default.
Keep CEC client disabled also for K66F. No need to have advanced
features on this example.

* Cleanup printing

* Use same resources as MCCE

* Remove mbed_lib.json

* Remove developer-mode flag

* Implement reset+reboot on key-press 'r'

* Remove configs folder with all content

* Remove the need for PAL config file (requires patch)

* Fix printing of counter

* Remove button + led configs

* Remove old tests

* Add Device Management E2E tests

* Allow reading API key from MBED_CLOUD_SDK_API_KEY variable

* Add entropy injection with hardcoded entropy

* All platforms will use hardcoded entropy injection. This is needed
only for non-TRNG boards, but for code simplicity, do it for all.
* Accept also CA_CERT existing error from fcc_developer() API.

* Fix F411RE configuration

* Cleanup mbed_cloud_client_user_config file

Make Blocksize to be 512 KiB and update buffer 1 KiB by default.

This saves some RAM and 512 is going to be the client default
in future.

* Make INFO the default max for trace

* Remove esp-config as its not needed

* Add deregister (5000/0/1) and refactor shutdown handling

* Seperate functions for deregister callback and deregister handling.
* Refactored the logic for handling shutdown.
* Bring down network as part of shutdown.

* Update to MCC 3.3.0 and Mbed OS 5.13.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants