AWS IoT Embedded C Device SDK
Main Page
Related Pages
Data Structures
Files
File List
Globals
tests
integration
include
aws_iot_integ_tests_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 TESTS_INTEGRATION_INTEG_TESTS_CONFIG_H_
17
#define TESTS_INTEGRATION_INTEG_TESTS_CONFIG_H_
18
19
/* Number of messages to publish in each publish thread */
20
#define PUBLISH_COUNT 100
21
22
/* Maximum number of threads to create for the multi-threading test */
23
#define MAX_PUB_THREAD_COUNT 3
24
25
/* Minimum percentage of messages that must be received back by the yield thread.
26
* This is here ONLY because sometimes the yield thread doesn't get scheduled before the publish
27
* thread when it is created. In every other case, 100% messages should be received. */
28
#define RX_RECEIVE_PERCENTAGE 99.0f
29
30
/* Max number of initial connect retries */
31
#define CONNECT_MAX_ATTEMPT_COUNT 3
32
33
/* Interval that each thread sleeps for */
34
#define THREAD_SLEEP_INTERVAL_USEC 500000
35
36
/* Test topic to publish on */
37
#define INTEGRATION_TEST_TOPIC "Tests/Integration/EmbeddedC"
38
39
/* Client ID to be used for single client tests */
40
#define INTEGRATION_TEST_CLIENT_ID "EMB_C_SDK_INTEG_TESTER"
41
42
/* Client IDs to be used for multiple client tests */
43
#define INTEGRATION_TEST_CLIENT_ID_PUB "EMB_C_SDK_INTEG_TESTER_PUB"
44
#define INTEGRATION_TEST_CLIENT_ID_SUB "EMB_C_SDK_INTEG_TESTER_SUB"
45
46
#endif
/* TESTS_INTEGRATION_INTEG_TESTS_CONFIG_H_ */
Generated by
1.8.10