Morse Micro IoT SDK
2.9.7
aws_iot_config.h
Go to the documentation of this file.
1
/*
2
* Copyright 2023 Morse Micro
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
#pragma once
13
14
#include <stdio.h>
15
17
#define MAX_JSON_LEN 512
18
25
#define AWS_KEY_THING_NAME "aws.thingname"
26
30
#define AWS_KEY_ENDPOINT "aws.endpoint"
31
36
#define AWS_KEY_PORT "aws.port"
37
42
#define AWS_KEY_SHADOW_NAME "aws.shadowname"
43
49
#define AWS_KEY_DEVICE_CERTIFICATE "aws.devicecert"
50
56
#define AWS_KEY_DEVICE_KEYS "aws.devicekeys"
57
61
#define AWS_KEY_ROOT_CA "aws.rootca"
62
70
#define AWS_KEY_PROVISIONING_CERT "aws.devicecert"
71
78
#define AWS_KEY_PROVISIONING_KEYS "aws.devicekeys"
79
84
#define AWS_KEY_PROVISIONING_TEMPLATE "aws.provisioningtemplate"
85
90
#define AWS_KEY_OTA_CERTIFICATE "aws.ota_cert"
91
93
#if defined(AWS_LOG_LEVEL) && (AWS_LOG_LEVEL >= 1)
94
#define LogError(message) do { printf("Error: "
); \
95
printf message; \
96
printf("\n"); \
97
} while (0)
98
#else
99
#define LogError(message)
100
#endif
101
103
#if defined(AWS_LOG_LEVEL) && (AWS_LOG_LEVEL >= 2)
104
#define LogWarn(message) do { printf("Warn: "
); \
105
printf message; \
106
printf("\n"); \
107
} while (0)
108
#else
109
#define LogWarn(message)
110
#endif
111
113
#if defined(AWS_LOG_LEVEL) && (AWS_LOG_LEVEL >= 3)
114
#define LogInfo(message) do { printf("Info: "
); \
115
printf message; \
116
printf("\n"); \
117
} while (0)
118
#else
119
#define LogInfo(message)
120
#endif
121
123
#if defined(AWS_LOG_LEVEL) && (AWS_LOG_LEVEL >= 4)
124
#define LogDebug(message) do { printf("Debug: "
); \
125
printf message; \
126
printf("\n"); \
127
} while (0)
128
#else
129
#define LogDebug(message)
130
#endif
examples
aws_iot
src
aws_iot_config.h
Copyright 2021 Morse Micro