chirpstack-docs
chirpstack-docs copied to clipboard
Example JSON message for ack event integration do not match the actual JSON
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"
}