AWS IoT Embedded C Device SDK
tests/integration/include/aws_iot_config.h
1 /*
2  * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef SRC_SHADOW_IOT_SHADOW_CONFIG_H_
17 #define SRC_SHADOW_IOT_SHADOW_CONFIG_H_
18 
19 // Get from console
20 // =================================================
21 #define AWS_IOT_MQTT_HOST ""
22 #define AWS_IOT_MQTT_PORT 8883
23 #define AWS_IOT_MQTT_CLIENT_ID "c-sdk-client-id"
24 #define AWS_IOT_MY_THING_NAME "AWS-IoT-C-SDK"
25 #define AWS_IOT_ROOT_CA_FILENAME "rootCA.crt"
26 #define AWS_IOT_CERTIFICATE_FILENAME "cert.pem"
27 #define AWS_IOT_PRIVATE_KEY_FILENAME "privkey.pem"
28 // =================================================
29 
30 // MQTT PubSub
31 #define AWS_IOT_MQTT_TX_BUF_LEN 512
32 #define AWS_IOT_MQTT_RX_BUF_LEN 512
33 #define AWS_IOT_MQTT_NUM_SUBSCRIBE_HANDLERS 5
34 
35 // Thing Shadow specific configs
36 #define SHADOW_MAX_SIZE_OF_RX_BUFFER AWS_IOT_MQTT_RX_BUF_LEN+1
37 #define MAX_SIZE_OF_UNIQUE_CLIENT_ID_BYTES 80
38 #define MAX_SIZE_CLIENT_ID_WITH_SEQUENCE MAX_SIZE_OF_UNIQUE_CLIENT_ID_BYTES + 10
39 #define MAX_SIZE_CLIENT_TOKEN_CLIENT_SEQUENCE MAX_SIZE_CLIENT_ID_WITH_SEQUENCE + 20
40 #define MAX_ACKS_TO_COMEIN_AT_ANY_GIVEN_TIME 10
41 #define MAX_THINGNAME_HANDLED_AT_ANY_GIVEN_TIME 10
42 #define MAX_JSON_TOKEN_EXPECTED 120
43 #define MAX_SHADOW_TOPIC_LENGTH_WITHOUT_THINGNAME 60
44 #define MAX_SIZE_OF_THING_NAME 20
45 #define MAX_SHADOW_TOPIC_LENGTH_BYTES MAX_SHADOW_TOPIC_LENGTH_WITHOUT_THINGNAME + MAX_SIZE_OF_THING_NAME
46 
47 // Auto Reconnect specific config
48 #define AWS_IOT_MQTT_MIN_RECONNECT_WAIT_INTERVAL 1000
49 #define AWS_IOT_MQTT_MAX_RECONNECT_WAIT_INTERVAL 8000
50 
51 #endif /* SRC_SHADOW_IOT_SHADOW_CONFIG_H_ */