Sending Messages

Once the SQS connection has been created, you can use any supported SQS client tool or application to send a message to the queue which will be recieved by the MSG module. Messages sent to an SQS queue for MSG modules require two message attributes:

  • ModuleName

    • This attribute indicates to the SQS connection which digital twin model the message should be routed too.

  • SossObjectId

    • This attribute indicates to the SQS connection which digital twin object the message should be routed too.

For example, the following example shows how to send a message to the real-time digital twin, “MyDigitalTwin”, which will be routed to the SOSS object identified as “MyInstanceId_23” through the AWS SQS Management UI:

image1

Note

The payload needs to be a serialized message that can be deserialized by the module.