MQTT in Android
summary
Demo shows a working Android client that uses AWS IoT Core as the MQTT broker, authenticates via Cognito, and uses the AWS IoT SDK to connect, subscribe and publish. It demonstrates QoS 0 and 1 only (no QoS 2 on AWS), explains reconnection defaults (auto‑reconnect, exponential backoff starting 4s, max 10 attempts), reports a 128KB payload limit and a practical topic limit (~50), and publishes/receives messages successfully in the app.
AI-written summary · about
chapters (33)
- 0:00Introduction
- 0:16What is MQTT?
- 0:52MQTT vs HTTP
- 1:46Debugging challenges
- 2:41Subscribe mechanism
- 3:15Publishing and brokers
- 3:55Publishing example
- 4:30Quality of Service levels
- 5:14QoS 0: Fire and forget
- 5:46QoS 1: At least once
- 6:49QoS 2: Exactly once
- 7:45AWS IoT Core overview
- 8:44MQTT manager setup
- 9:45Connection parameters
- 10:48Authentication methods
- 11:55Connection status callbacks
- 13:18Default configuration settings
- 14:35Understanding clean sessions
- 15:35Subscribing and topics
- 17:00Unsubscribing from topics
- 17:14Publishing messages
- 17:59AWS Shadow states
- 19:25Payload limitations and logic
- 21:59State versioning
- 23:42AWS IoT Core policies
- 26:07Code demo setup
- 29:31Implementing app buttons
- 30:47Live testing and logs
- 32:30Policy restriction demo
- 33:54Topic restriction demo
- 36:10Resources and references
- 37:00Q&A session
- 43:14Conclusion
related talks
35mUsing ESP32 & Android to Create Rich IoT Experiences
14mReal-Time Communication in Android
52mOur ongoing journey from REST to GraphQL on Android
32mAdd Real-Time Features to your Mobile App
31mAn introduction to Bluetooth mesh for Android developers
17mDesigning Long Lived XMPP(TCP) Connections on Android
54mAndroid chat app in the cloud
21mAndroid Things: The IoT Platform for Everyone
