Skip to content

In this IoT system, the AWS Lambda functions serve as the main processor of incoming data from IoT devices, such as temperature or humidity readings.

License

Notifications You must be signed in to change notification settings

ewardq/STM32_with_ESP32_and_AWS_Lambda

Repository files navigation

Embedded IoT system with RESTful API — From STM32 drivers to AWS Lambda

IoT_with_RESTful

In this embedded IoT system, the AWS Lambda functions serve as the main processor of data incoming from IoT devices, such as temperature or humidity readings. An API Gateway Lambda function gets triggered when a device sends an HTTP POST request with sensor data. The system:

• Parses the JSON payload from the request sent by the IoT device.

• Extracts sensor data (e.g., temperature, humidity, timestamp).

• Stores the data in DynamoDB for long-term storage and analysis.

How to use this project

The STM32<->ESP32 part of this project is better developed in this repo: https://github.com/ewardq/STM32_Drivers

This repository uses the previously mentioned drivers to send HTTP Request to AWS Lambda.

The complete library is in the 9_ESP32_AWS_client folder, the other folders included in this repo are just examples of how to execute POST, GET, PUT and DELETE requests.

  • HTTP POST request to AWS Lambda and to then update a DynamoDB database.
  • HTTP GET request to retrieve data from DynamoDB.
  • HTTP PUT request to AWS Lambda.
  • HTTP DELETE request to remove data from DynamoDB.

AWS App side

To implement the Lambda functions included in the Lambda code folder, make an AWS API Gateway simmilar to the following example:

image

About

In this IoT system, the AWS Lambda functions serve as the main processor of incoming data from IoT devices, such as temperature or humidity readings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published