|
|
hai 1 ano | |
|---|---|---|
| .idea | hai 1 ano | |
| app | hai 1 ano | |
| gradle | hai 1 ano | |
| mqtt | hai 1 ano | |
| .gitignore | hai 1 ano | |
| README.md | hai 1 ano | |
| build.gradle | hai 1 ano | |
| gradle.properties | hai 1 ano | |
| gradlew | hai 1 ano | |
| gradlew.bat | hai 1 ano | |
| settings.gradle | hai 1 ano |
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