Morse Micro IoT SDK  2.9.7
aws_iot_config.h File Reference

Detailed Description

Contains the configuration parameters for the AWS IoT application.

Definition in file aws_iot_config.h.

#include <stdio.h>
Include dependency graph for aws_iot_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_JSON_LEN   512
 Maximum length of JSON strings. More...
 
#define AWS_KEY_THING_NAME   "aws.thingname"
 The config store key storing the thing name, if not found it is assumed the device needs provisioning. More...
 
#define AWS_KEY_ENDPOINT   "aws.endpoint"
 The config store key storing the AWS endpoint. More...
 
#define AWS_KEY_PORT   "aws.port"
 The config store key storing the AWS endpoint port. More...
 
#define AWS_KEY_SHADOW_NAME   "aws.shadowname"
 The config store key storing the AWS shadow name. More...
 
#define AWS_KEY_DEVICE_CERTIFICATE   "aws.devicecert"
 The config store key storing the device certificate. More...
 
#define AWS_KEY_DEVICE_KEYS   "aws.devicekeys"
 The config store key storing the device private key. More...
 
#define AWS_KEY_ROOT_CA   "aws.rootca"
 The config store key storing the AWS root certificate. More...
 
#define AWS_KEY_PROVISIONING_CERT   "aws.devicecert"
 The config store key storing the provisioning certificate. More...
 
#define AWS_KEY_PROVISIONING_KEYS   "aws.devicekeys"
 The config store key storing the provisioning private key. More...
 
#define AWS_KEY_PROVISIONING_TEMPLATE   "aws.provisioningtemplate"
 The config store key storing the fleet provisioning template name. More...
 
#define AWS_KEY_OTA_CERTIFICATE   "aws.ota_cert"
 The config store key storing the OTA certificate for validating OTA images. More...
 
#define LogError(message)
 Macro to log error messages. More...
 
#define LogWarn(message)
 Macro to log warning messages. More...
 
#define LogInfo(message)
 Macro to log info messages. More...
 
#define LogDebug(message)
 Macro to log debug messages. More...
 

Macro Definition Documentation

◆ AWS_KEY_DEVICE_CERTIFICATE

#define AWS_KEY_DEVICE_CERTIFICATE   "aws.devicecert"

The config store key storing the device certificate.

If fleet provisioning is used this key is updated with the new certificate. This is mandatory if fleet provisioning is not used.

Definition at line 49 of file aws_iot_config.h.

◆ AWS_KEY_DEVICE_KEYS

#define AWS_KEY_DEVICE_KEYS   "aws.devicekeys"

The config store key storing the device private key.

If fleet provisioning is used this key is updated with the new key. This is mandatory if fleet provisioning is not used.

Definition at line 56 of file aws_iot_config.h.

◆ AWS_KEY_ENDPOINT

#define AWS_KEY_ENDPOINT   "aws.endpoint"

The config store key storing the AWS endpoint.

This is mandatory.

Definition at line 30 of file aws_iot_config.h.

◆ AWS_KEY_OTA_CERTIFICATE

#define AWS_KEY_OTA_CERTIFICATE   "aws.ota_cert"

The config store key storing the OTA certificate for validating OTA images.

This is mandatory if OTA update is used.

Definition at line 90 of file aws_iot_config.h.

◆ AWS_KEY_PORT

#define AWS_KEY_PORT   "aws.port"

The config store key storing the AWS endpoint port.

If not found the port is assumed to be 443.

Definition at line 36 of file aws_iot_config.h.

◆ AWS_KEY_PROVISIONING_CERT

#define AWS_KEY_PROVISIONING_CERT   "aws.devicecert"

The config store key storing the provisioning certificate.

This key may be the same as AWS_KEY_DEVICE_CERTIFICATE in which case the fleet provisioning certificate is replaced with the device certificate on successful provisioning. This is mandatory if fleet provisioning is used.

Definition at line 70 of file aws_iot_config.h.

◆ AWS_KEY_PROVISIONING_KEYS

#define AWS_KEY_PROVISIONING_KEYS   "aws.devicekeys"

The config store key storing the provisioning private key.

This key may be the same as AWS_KEY_DEVICE_KEYS in which case the fleet provisioning key is replaced with the device key on successful provisioning. This is mandatory if fleet provisioning is used.

Definition at line 78 of file aws_iot_config.h.

◆ AWS_KEY_PROVISIONING_TEMPLATE

#define AWS_KEY_PROVISIONING_TEMPLATE   "aws.provisioningtemplate"

The config store key storing the fleet provisioning template name.

This is mandatory if fleet provisioning is used.

Definition at line 84 of file aws_iot_config.h.

◆ AWS_KEY_ROOT_CA

#define AWS_KEY_ROOT_CA   "aws.rootca"

The config store key storing the AWS root certificate.

This is mandatory.

Definition at line 61 of file aws_iot_config.h.

◆ AWS_KEY_SHADOW_NAME

#define AWS_KEY_SHADOW_NAME   "aws.shadowname"

The config store key storing the AWS shadow name.

If not found a classic shadow is used.

Definition at line 42 of file aws_iot_config.h.

◆ AWS_KEY_THING_NAME

#define AWS_KEY_THING_NAME   "aws.thingname"

The config store key storing the thing name, if not found it is assumed the device needs provisioning.

Optional, defaults to "MM_Client_ID_<MAC Address>"

Definition at line 25 of file aws_iot_config.h.

◆ LogDebug

#define LogDebug (   message)

Macro to log debug messages.

Definition at line 129 of file aws_iot_config.h.

◆ LogError

#define LogError (   message)

Macro to log error messages.

Definition at line 99 of file aws_iot_config.h.

◆ LogInfo

#define LogInfo (   message)

Macro to log info messages.

Definition at line 119 of file aws_iot_config.h.

◆ LogWarn

#define LogWarn (   message)

Macro to log warning messages.

Definition at line 109 of file aws_iot_config.h.

◆ MAX_JSON_LEN

#define MAX_JSON_LEN   512

Maximum length of JSON strings.

Definition at line 17 of file aws_iot_config.h.