Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-cloud-workshop-connect-HTS221 by
simple-mbed-cloud-client/update_ui_example.h@4:e518dde96e59, 2018-10-25 (annotated)
- Committer:
- JimCarver
- Date:
- Thu Oct 25 14:00:12 2018 +0000
- Revision:
- 4:e518dde96e59
- Parent:
- 0:6b753f761943
Simulated dispenser
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JimCarver | 0:6b753f761943 | 1 | // ---------------------------------------------------------------------------- |
JimCarver | 0:6b753f761943 | 2 | // Copyright 2016-2018 ARM Ltd. |
JimCarver | 0:6b753f761943 | 3 | // |
JimCarver | 0:6b753f761943 | 4 | // SPDX-License-Identifier: Apache-2.0 |
JimCarver | 0:6b753f761943 | 5 | // |
JimCarver | 0:6b753f761943 | 6 | // Licensed under the Apache License, Version 2.0 (the "License"); |
JimCarver | 0:6b753f761943 | 7 | // you may not use this file except in compliance with the License. |
JimCarver | 0:6b753f761943 | 8 | // You may obtain a copy of the License at |
JimCarver | 0:6b753f761943 | 9 | // |
JimCarver | 0:6b753f761943 | 10 | // http://www.apache.org/licenses/LICENSE-2.0 |
JimCarver | 0:6b753f761943 | 11 | // |
JimCarver | 0:6b753f761943 | 12 | // Unless required by applicable law or agreed to in writing, software |
JimCarver | 0:6b753f761943 | 13 | // distributed under the License is distributed on an "AS IS" BASIS, |
JimCarver | 0:6b753f761943 | 14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
JimCarver | 0:6b753f761943 | 15 | // See the License for the specific language governing permissions and |
JimCarver | 0:6b753f761943 | 16 | // limitations under the License. |
JimCarver | 0:6b753f761943 | 17 | // ---------------------------------------------------------------------------- |
JimCarver | 0:6b753f761943 | 18 | |
JimCarver | 0:6b753f761943 | 19 | #ifndef UPDATE_UI_EXAMPLE_H |
JimCarver | 0:6b753f761943 | 20 | #define UPDATE_UI_EXAMPLE_H |
JimCarver | 0:6b753f761943 | 21 | |
JimCarver | 0:6b753f761943 | 22 | #include "mbed-cloud-client/MbedCloudClient.h" |
JimCarver | 0:6b753f761943 | 23 | |
JimCarver | 0:6b753f761943 | 24 | #ifdef MBED_CLOUD_CLIENT_SUPPORT_UPDATE |
JimCarver | 0:6b753f761943 | 25 | |
JimCarver | 0:6b753f761943 | 26 | #ifdef ARM_UPDATE_CLIENT_VERSION_VALUE |
JimCarver | 0:6b753f761943 | 27 | #if ARM_UPDATE_CLIENT_VERSION_VALUE > 101000 |
JimCarver | 0:6b753f761943 | 28 | /** |
JimCarver | 0:6b753f761943 | 29 | * @brief Function for authorizing firmware downloads and reboots. |
JimCarver | 0:6b753f761943 | 30 | * @param request The request under consideration. |
JimCarver | 0:6b753f761943 | 31 | */ |
JimCarver | 0:6b753f761943 | 32 | void update_authorize(int32_t request); |
JimCarver | 0:6b753f761943 | 33 | #endif |
JimCarver | 0:6b753f761943 | 34 | #endif |
JimCarver | 0:6b753f761943 | 35 | |
JimCarver | 0:6b753f761943 | 36 | /** |
JimCarver | 0:6b753f761943 | 37 | * @brief Callback function for reporting the firmware download progress. |
JimCarver | 0:6b753f761943 | 38 | * @param progress Received bytes. |
JimCarver | 0:6b753f761943 | 39 | * @param total Total amount of bytes to be received. |
JimCarver | 0:6b753f761943 | 40 | */ |
JimCarver | 0:6b753f761943 | 41 | void update_progress(uint32_t progress, uint32_t total); |
JimCarver | 0:6b753f761943 | 42 | |
JimCarver | 0:6b753f761943 | 43 | /** |
JimCarver | 0:6b753f761943 | 44 | * @brief Set the cloud client instance for the update UI to use |
JimCarver | 0:6b753f761943 | 45 | * @param[in] client pointer to the cloud client instance |
JimCarver | 0:6b753f761943 | 46 | */ |
JimCarver | 0:6b753f761943 | 47 | void update_ui_set_cloud_client(MbedCloudClient* client); |
JimCarver | 0:6b753f761943 | 48 | |
JimCarver | 0:6b753f761943 | 49 | |
JimCarver | 0:6b753f761943 | 50 | #endif // MBED_CLOUD_CLIENT_SUPPORT_UPDATE |
JimCarver | 0:6b753f761943 | 51 | |
JimCarver | 0:6b753f761943 | 52 | #endif // UPDATE_UI_EXAMPLE_H |