Including SDKs of XiaoMi SDS, EMQ, EMR, and Talos.
- If using maven to management, you can just depend latest jars from maven central repository.
-
Checkout to the newest release and use its version in dependency.
-
Use corresponding SDK artifactId.
-
For example, to use EMQ,
<dependency>
<groupId>com.xiaomi.infra.galaxy</groupId>
<artifactId>galaxy-emq-client</artifactId>
<version>1.2.7</version>
</dependency>
- Download source codes from github and compile it your self.
Github link: https://github.com/XiaoMi/galaxy-sdk-java.git
For example, in maven using
mvn clean install
-
HttpClient
of our SDKs support multi-thread, if you need greater concurrency, you can create your ownHttpClient
and pass it to the constructor of classClientFactory
. (References and examples ingalaxy-client-java
,sds-android-examples
):ClientFactory(Credential credential, HttpClient httpClient)
-
When compiling
sds-android-examples
, you must installAndroid SDK
and set environment variableANDROID_HOME
to the install path ofAndroid SDK
before. Our examples usedAndroid SDK API Level 19
.