IOT MQTT Message cost/billing appears larger than expected. Per character maybe?

0

I deployed a prototype AWS FreeRTOS device in the field last week and my message count appears way out. By my count I received nearly 5000 messages over mqtt. But according to my first bill that was 230,000 messages costing 23c - AWS IoT USW2-Messages. Am I doing something wrong? Is the cost really per character maybe? My average message length is about 50.

Thanks in advance.

已提问 2 年前490 查看次数
2 回答
0
已接受的回答

Hi. Messages are metered in 5KB increments.

By my count I received nearly 5000 messages over mqtt.

Messages are metered in both directions, although PUBACKs are only metered when they are device to service. Details on metered messages here: https://aws.amazon.com/iot-core/pricing/additional-details/#MQTT_Message_Metering

Do you use other features, like shadows, that you perhaps aren't counting in the 5000?

You can use tools like Protocol Metrics in CloudWatch to see more about the message activity. More information here:

https://docs.aws.amazon.com/iot/latest/developerguide/monitoring_overview.html

https://docs.aws.amazon.com/iot/latest/developerguide/metrics_dimensions.html

profile pictureAWS
专家
Greg_B
已回答 2 年前
0

Thanks for the link. I found this there "MQTT PUBLISH (received from device) Metered on the size of the payload and topic in bytes" Marked as Solved.

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则