coreMQTT v1.0.1
MQTT 3.1.1 Client Library
core_mqtt_config_defaults.h
Go to the documentation of this file.
1/*
2 * coreMQTT v1.0.1
3 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy of
6 * this software and associated documentation files (the "Software"), to deal in
7 * the Software without restriction, including without limitation the rights to
8 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 * the Software, and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in all
13 * copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 */
22
35#ifndef CORE_MQTT_CONFIG_DEFAULTS_H_
36#define CORE_MQTT_CONFIG_DEFAULTS_H_
37
38/* The macro definition for MQTT_DO_NOT_USE_CUSTOM_CONFIG is for Doxygen
39 * documentation only. */
40
51#ifdef DOXYGEN
52 #define MQTT_DO_NOT_USE_CUSTOM_CONFIG
53#endif
54
74#ifndef MQTT_STATE_ARRAY_MAX_COUNT
75 /* Default value for the maximum acknowledgment pending PUBLISH messages. */
76 #define MQTT_STATE_ARRAY_MAX_COUNT ( 10U )
77#endif
78
91#ifndef MQTT_MAX_CONNACK_RECEIVE_RETRY_COUNT
92 /* Default value for the CONNACK receive retries. */
93 #define MQTT_MAX_CONNACK_RECEIVE_RETRY_COUNT ( 5U )
94#endif
95
106#ifndef MQTT_PINGRESP_TIMEOUT_MS
107 /* Wait 0.5 seconds by default for a ping response. */
108 #define MQTT_PINGRESP_TIMEOUT_MS ( 500U )
109#endif
110
127#ifndef LogError
128 #define LogError( message )
129#endif
130
147#ifndef LogWarn
148 #define LogWarn( message )
149#endif
150
167#ifndef LogInfo
168 #define LogInfo( message )
169#endif
170
187#ifndef LogDebug
188 #define LogDebug( message )
189#endif
190
191#endif /* ifndef CORE_MQTT_CONFIG_DEFAULTS_H_ */