Supply your swarm of IoT devices with cloud connectivity by emnify. Automate your routines with this SDK for Java.
The recommended method for installing the SDK is with a build automation tool, like Maven or Gradle. You can add the emnify dependency to your existing project, specifying the latest version.
Regardless of the package manager you are using, you need to specify the latest version of the emnify Java SDK. The following examples use
{version}
where this should be specified.
Use the following dependency in your project to grab via Maven:
<dependency>
<groupId>com.emnify.sdk</groupId>
<artifactId>emnify</artifactId>
<version>{version}</version>
</dependency>
Use the following to add the emnify dependency to your project via Gradle:
implementation group: "com.emnify.sdk", name: "emnify", version: "{version}"
If you want to compile it yourself, here's how:
git clone git@github.com:EMnify/emnify-sdk-java
cd emnify-sdk-java
mvn install # Requires Maven
If you want to build your own .jar
, execute the following from within the cloned directory:
mvn package
This library supports the following Java implementations:
Refer to the SSL Report table for the supported Transport Layer Security (TLS) versions.
You can use environment variables for storing configuration settings like an application token or a base URL instead of hardcoding them in your application.
Name | Description |
---|---|
EMNIFY_BASE_PATH |
Base URL to form a request. Default value: https://cdn.emnify.net |
EMNIFY_APPLICATION_TOKEN |
Variable for authenticating via an application token. |
Read more about working with the Java SDK and the underlying concepts in the emnify product documentation.
If you've found a bug or would like to add new features, open an issue or create a pull request to this Github repository.
Please note that this project is governed by emnify's Code of Conduct. By participating, you agree to abide by its terms.
If you need help using our services, please file a support ticket.