Overview
In this article:
The Message Store is a repository, hosted by Myriota and made available to all Customers as a device Destination for use during testing. As a public resource, it should be used with discretion and not for production data.
Currently, there is no limitation on the number of messages a single device or Customer account can send to the Message Store. However, messages older than four weeks may be removed from the Message Store without notice for storage optimization.
Using the Message Store as a Destination
Myriota's AWS Message Store comes preconfigured as a Destination when your account is created. Simply add it to your device's destination list, and then you will be able to retrieve messages from it when new data is transmitted from your device. However, if you modified or removed it by mistake, you can use the following configurations to recover it:
Type: Lambda
Function ARN: arn:aws:lambda:us-east-1:330018199594:function:MessageStore-Endpoint:Live
Role ARN: arn:aws:iam::330018199594:role/MessageStore-Endpoint
Retrieving Messages via Device Manager
If your device has the Message Store destination configured, you can view the latest 10 messages in the User Messages History, accessible by clicking on a device in your Device Manager. The raw hexadecimal data can be copied for debugging or testing purposes.
Retrieving Messages via Command Line
To retrieve messages from Message Store via the command line, you will need your device's Module ID and Myriota Module and Devkit SDK or FlexSense SDK, depending on your hardware platform.
Open a terminal window and enter the following command:
updater.py --id
Copy the ID, and then use it to run the following command
message_store.py query <ID>
