Retrieving Messages

You can configure how the Myriota Cloud handles messages from your device using the Device Manager. To get up and running quickly, you may use Myriota's Message Store as your destination initially.

Set Up Your Destination

  1. Login to Device Manager and create an destination of type lambda by first selecting Destinations in the left-bar, then clicking the 'Register New' button
  2. Enter the following fields and click 'Create':
    • Type: lambda
    • FunctionArn: arn:aws:lambda:us-east-1:330018199594:function:MessageStore-Endpoint:Live
    • RoleArn: arn:aws:iam::330018199594:role/MessageStore-Endpoint

Register Your Device

Register your device with the Myriota Cloud and specify messages to go to the destination defined above.

  1. Retrieve your registration code by switching to the terminal window, and entering the following command --regcode -p /dev/ttyUSB0
  2. Copy the registration code
  3. Switch back to the Device Manager.
  4. Select 'Devices' from the left-bar, then click the 'Register New' button.
  5. Enter your device Registration Code and select your lambda Destination from the drop down.

Retrieve Your Messages

  1. Test the configuration by setting up a device with the hello_space.bin built in the Schedule Messages section.
    • If you have set up a Satellite Simulator be sure to set the environment variable SATELLITES=Lab when building hello_space.bin
  2. To retrieve messages sent from your device, you will need your Module's ID. Switch back to the terminal and enter the following command --id -p /dev/ttyUSB0
  3. Copy the ID, and then use it to run the following command query <ID>
    • There can be a message latency of up to 10 minutes when using the Satellite Simulator and typically up to 12 hours when transmitting to the Myriota satellite
    • Be aware that a given message may be duplicated one or more times

In production, customers typically have messages forwarded to their own systems as soon as they are available. Myriota supports a number of destination types, including a simple POST request to a REST API. Destinations can be configured at Device Manager.

The device will generate diagnostics messages periodically (current frequency is weekly) to monitor the service status. These messages are required for the ongoing improvement of the Myriota Network. The transmission of diagnostic messages utilizes a very limited amount of uplink bandwidth. These messages are not including in your message count, and are not pushed to the assigned destination.

Next Steps: Enclosure Assembly