Skip to content

Commit ab09714

Browse files
applications: Add MQTT File Downloader config for keyword detection
THe MQTT File Streams library allows a MQTTFileDownloader_config.h file to be provided, which defines custom values for build configuration macros. This commit adds a MQTTFileDownloader_config.h file for the keyword detection example. This file defines the block size that should be used when downloading the firmware image. Signed-off-by: Chuyue Luo <[email protected]>
1 parent 355eae8 commit ab09714

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
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)