- Newest
- Most votes
- Most comments
I apologize, but there seems to be some confusion in your statement. AWS IoT Core uses MQTT topics that are typically stable and don't change automatically when an app is restarted. MQTT topics are UTF-8 encoded strings that represent a hierarchical structure and are used to identify and route messages between publishing and subscribing clients.
For a mobile app connecting to AWS IoT Core, the topic structure should be designed carefully and remain consistent. It's not typical for topics to change every time an app is shut off and restarted.
To set up your Android app to send data to your AWS account:
-
Ensure your app is properly configured to connect to AWS IoT Core. This usually involves setting up Amazon Cognito Identity Pools for authentication.
-
Design a consistent topic structure for your app. For example, you might use a topic like "sensor/data/[device-id]" where [device-id] is unique to each device.
-
In your AWS IoT Console, you can use the MQTT test client to subscribe to these topics and view incoming messages. You can subscribe to "#" to see all messages or use a more specific topic filter.
-
If you've created a Lambda function to process this data, make sure it's properly triggered by the IoT messages. You may need to set up an IoT Rule that invokes your Lambda function when messages are published to your topic.
If you're still having issues, you might want to check your app's code to ensure it's using a consistent topic when publishing messages. Also, verify that your Lambda function is correctly set up to be triggered by IoT messages on the expected topic.
Remember, MQTT topics should be designed to be stable and meaningful. If they're changing unexpectedly, there might be an issue in your app's implementation that needs to be addressed.
Sources
MQTT topics - AWS IoT Core
View MQTT messages with the AWS IoT MQTT client - AWS IoT Core
Connecting and Authenticating Automotive iOS App to AWS IoT Core | AWS for Industries
answered 2 years ago
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated 2 years ago

Thank you. However, I'm using an AWS IOT sensors Mobile APP in google play. Changes the thing name each time the app is started. No way to "catch " that in my Lambda. I forgot to add, that the mobile app code in aforesaid app does not appear in github,although in github there is a lambda function defined. However, the lambda function requires a Thing Name, which in the case of aforesaid APP keeps changing. Ergo, how to catch the data!