Skip to content

Setup utility for SIMCOM7600E and AWS IoT Core integration.

Notifications You must be signed in to change notification settings

samkellerhals/simcom7600E-aws-iot-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

SIMCOM7600 AWS IoT Core Setup

A utility to setup the SIMCOM7600 with AWS IoT Core.

This program will establish an MQTT connection between the SIMCOM7600 module and AWS IoT core, subscribe to a topic and publish a message to it. It will then listen for incoming messages to this topic - which can be tested using the AWS IoT Core MQTT test client.

For a full guide on the process see: https://medium.com/@kellerhalssamuel/simcom7600-and-aws-iot-core-integration-guide-ceb7ff485289

Requirements

You need to setup a thing (device) on AWS IoT core, and generate the required certificates (pem files). The following certificates are required in the root of this repository, and can be renamed to the following names:

  • Amazon trust services endpoint certificate (Amazon Root CA 1): cacert.pem
  • A device certificate: clientcert.pem
  • The private key certificate: clientkey.pem

For more information on setting up a new device on AWS and the corresponding certificates see this article.

Configuration

The application needs to be configured via the ApplicationConfig struct which is found in main.cpp.

struct ApplicationConfig {
    std::string port;
    std::string clientcert; 
    std::string clientkey;
    std::string cacert; 
    std::string awsurl;
    std::string thing_name;
    std::string topic;
    std::string willmsg;
};

The awsurl is the AWS IoT Core endpoint which can be found in settings. The topic represents the MQTT topic to subscribe and publish to, and thing_name is the name of the AWS IoT Core thing which you setup. The willmsg is a message which is published to the AWS IoT Core MQTT broker in case the device gets disconnected. The certificate names are the file names of the corresponding certificates, which must be stored in the root of this repository. port is the name of the port to which the SIMCOM module is connected to.

Usage

This utility currently only runs on Windows operating systems as it is configured with API calls from <windows.h>.

Compile using g++ src/*.cpp -o main

Run using ./main.exe

About

Setup utility for SIMCOM7600E and AWS IoT Core integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages