The Pinnacle-100-Firmware has built-in support for the Memfault Firmware SDK. Laird Connectivity has released some excellent documentation on how to integrate Memfault and the AWS Out-of-Box demo includes a full Memfault integration that can be tried out. We recommend following both this documentation page as well as Laird's.
Upon completion of the integration, the following subcomponents will be added to your system!
The integration requires a Memfault cloud account to process data collected by the Memfault Firmware SDK. You can create one for free from here!
Add the following options to your system's
The integration will automatically push data to Memfault over HTTPS when an LTE connection becomes available prior to connecting to AWS IoT allowing one to immediately get information about unexpected resets as well as debug any connectivity issues with AWS IoT.
After a connection with AWS IoT is established, Memfault data is published to the following topic.
Forwarding data to Memfault from AWS IoT is very easy! You just need to configure an AWS IoT Rule for the topic and connect it to an AWS Lambda function. This can either be done manually in the AWS console or programmatically using CloudFormation.
These steps assume you have installed the AWS CLI and have set up credentials to access your AWS instance.
- Copy and paste the contents below into
- Deploy the configuration
First you will need to create an AWS Lambda to forward data to Memfault
Next you will need to create a new AWS IoT Rule:
Finally, as part of the setup you will need to attach the Lambda you just created to the AWS IoT rule so that the lambda gets triggered each time new data arrives.