Skip to content

Commit 8276cbb

Browse files
applications: New modular OTA for speech recognition example
Update speech recognition CMakeLists.txt and add MQTTFileDownloader_config.h file to allow this example to use the new modular OTA. Signed-off-by: Chuyue Luo <[email protected]>
1 parent fd6ca96 commit 8276cbb

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

applications/speech_recognition/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ target_link_libraries(speech-recognition
154154
fri-bsp
155155
helpers-events
156156
mbedtls
157+
ota-update
157158
provisioning-lib
158159
speexdsp
159160
tfm-ns-interface
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright Amazon.com, Inc. and its affiliates. All Rights Reserved.
3+
* Copyright 2024 Arm Limited and/or its affiliates
4+
5+
*
6+
* SPDX-License-Identifier: MIT
7+
* Licensed under the MIT License. See the LICENSE accompanying this file
8+
* for the specific language governing permissions and limitations under
9+
* the License.
10+
*/
11+
12+
/**
13+
* @file MQTTFileDownloader_config.h
14+
* @brief MQTT File Streams options.
15+
*/
16+
17+
#ifndef MQTT_FILE_DOWNLOADER_CONFIG_H
18+
#define MQTT_FILE_DOWNLOADER_CONFIG_H
19+
20+
/* Standard includes */
21+
#include <stdint.h>
22+
23+
/**
24+
* @ingroup mqtt_file_downloader_const_types
25+
* @brief Configure the Maximum size of the data payload. The
26+
* smallest value is 256 bytes, maximum is 128KB. For more see
27+
* https://docs.aws.amazon.com/general/latest/gr/iot-core.html
28+
*/
29+
#define mqttFileDownloader_CONFIG_BLOCK_SIZE 4096U
30+
31+
#endif /* MQTT_FILE_DOWNLOADER_CONFIG_H */

0 commit comments

Comments
 (0)