Skip to content

Example JSON message for ack event integration do not match the actual JSON #34

@JoseAmador95

Description

@JoseAmador95

Hi! I found that the actual JSON message I'm receiving from the AWS SNS integration is different from the documentation. The actual JSON does not contain any rxInfo or txInfo members. I decided to open the issue in this repo as I assume that this behaviour is present in every integration (due to protobuf) and the actual content of the JSON makes sense this way. Still, I'm not sure if this is the intended behaviour of the integration. Here is a sample of the JSON I'm receiving from SNS.

Regards!

{
   "messageId":"DUMMY-36e6-4ca0-ad82-d61d6e36597a",
   "receiptHandle":"DUMMY",
   "body":{
      "applicationID":"2",
      "applicationName":"test-app",
      "deviceName":"dev0",
      "devEUI":"Dm4xcd7Nkcg=",
      "acknowledged":true,
      "fCnt":773,
      "tags":{
         
      }
   },
   "attributes":{
      "ApproximateReceiveCount":"496",
      "SentTimestamp":"1611000114155",
      "SenderId":"DUMMY",
      "ApproximateFirstReceiveTimestamp":"1611000114155"
   },
   "messageAttributes":{
      "dev_eui":{
         "stringValue":"0e6e3171decd91c8",
         "binaryValue":"None",
         "stringListValues":[
            
         ],
         "binaryListValues":[
            
         ],
         "dataType":"String"
      },
      "event":{
         "stringValue":"ack",
         "binaryValue":"None",
         "stringListValues":[
            
         ],
         "binaryListValues":[
            
         ],
         "dataType":"String"
      },
      "application_id":{
         "stringValue":"2",
         "binaryValue":"None",
         "stringListValues":[
            
         ],
         "binaryListValues":[
            
         ],
         "dataType":"String"
      }
   },
   "md5OfMessageAttributes":"DUMMY",
   "md5OfBody":"DUMMY",
   "eventSource":"aws:sqs",
   "eventSourceARN":"DUMMY",
   "awsRegion":"us-east-1"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions