|
|
1 年之前 | |
|---|---|---|
| .idea | 1 年之前 | |
| app | 1 年之前 | |
| gradle | 1 年之前 | |
| mqtt | 1 年之前 | |
| .gitignore | 1 年之前 | |
| README.md | 1 年之前 | |
| build.gradle | 1 年之前 | |
| gradle.properties | 1 年之前 | |
| gradlew | 1 年之前 | |
| gradlew.bat | 1 年之前 | |
| settings.gradle | 1 年之前 |
The MQTT Android Service is an MQTT client library modified from https://github.com/eclipse/paho.mqtt.android because old library don't support Android 12. It hasn't updated in a long time.
Edit the build.gradle (app level) file like below.
dependencies {
...
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
implementation project(path: ':mqtt')
}
See example project at https://github.com/ElectApp/MyMQTT/tree/master/app
git