2017. 9. 10. 17:24ㆍ안드로이드 개발
The most convenient way to start a new Android Application is to use Android Studio. Download Paho Android Service and Android MQTT Client library.Go to your
libs folder inside
app folder and paste all your
To add the Paho Android Service as a dependency to you app add the following parts to your gradle file.
The Paho Android Service needs the following permissions to work
To be able to create a binding to the Paho Android Service, the service needs to be declared in the
AndroidManifest.xml. Add the following within the
Receive MQTT Message
마지막으로 주요 기능을 wrapping한 PahoMqttClient 클래스만 하나 만들어주면 끝!
* MQTT Broker URL의 스키마는 tcp:// 이다!