Morse Micro IoT SDK
2.10.4
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) \
95
do { \
96
printf("Error: "
); \
97
printf message; \
98
printf("\n"); \
99
} while (0)
100
#else
101
#define LogError(message)
102
#endif
103
105
#if defined(AWS_LOG_LEVEL) && (AWS_LOG_LEVEL >= 2)
106
#define LogWarn(message) \
107
do { \
108
printf("Warn: "
); \
109
printf message; \
110
printf("\n"); \
111
} while (0)
112
#else
113
#define LogWarn(message)
114
#endif
115
117
#if defined(AWS_LOG_LEVEL) && (AWS_LOG_LEVEL >= 3)
118
#define LogInfo(message) \
119
do { \
120
printf("Info: "
); \
121
printf message; \
122
printf("\n"); \
123
} while (0)
124
#else
125
#define LogInfo(message)
126
#endif
127
129
#if defined(AWS_LOG_LEVEL) && (AWS_LOG_LEVEL >= 4)
130
#define LogDebug(message) \
131
do { \
132
printf("Debug: "
); \
133
printf message; \
134
printf("\n"); \
135
} while (0)
136
#else
137
#define LogDebug(message)
138
#endif
examples
aws_iot
src
aws_iot_config.h
Copyright 2021-2025 Morse Micro