Amazon IoT Device Defender library - FreeRTOS
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon IoT Device Defender library

Note

The content on this page may not be up-to-date. Please refer to the FreeRTOS.org library page for the latest update.

Introduction

You can use the Amazon IoT Device Defender library to send security metrics from your IoT devices to Amazon IoT Device Defender. You can use Amazon IoT Device Defender to continuously monitor these security metrics from devices for deviations from what you have defined as appropriate behavior for each device. If something doesn't look right, Amazon IoT Device Defender sends out an alert so that you can take action to fix the issue. Interactions with Amazon IoT Device Defender use MQTT, a lightweight publish-subscribe protocol. This library provides an API to compose and recognize the MQTT topic strings used by Amazon IoT Device Defender.

For more information, see Amazon IoT Device Defender in the Amazon IoT Developer Guide.

The library is written in C and designed to be compliant with ISO C90 and MISRA C:2012. The library has no dependencies on any additional libraries other than the standard C library. It also doesn't have any platform dependencies, such as threading or synchronization. It can be used with any MQTT library and any JSON or CBOR library. The library has proofs showing safe memory use and no heap allocation, making it suitable for IoT microcontrollers, but also fully portable to other platforms.

The Amazon IoT Device Defender library can be freely used and is distributed under the MIT open source license.

Code Size of Amazon IoT Device Defender (example generated with GCC for ARM Cortex-M)
File With -O1 Optimization With -Os Optimization
defender.c 1.1K 0.6K
Total estimates 1.1K 0.6K