Changes to enabled on-line compiler

Committer:
JMF
Date:
Wed May 30 20:59:51 2018 +0000
Revision:
0:082731ede69f
Initial commit

Who changed what in which revision?

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