Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

EnvisionIot/enos-mqtt-sdk-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using EnOS Device SDK for MQTT for Java

This article instructs how to prepare your development environment to use the EnOS Device SDK for MQTT for Java.

Preparing development environment

Installing Java JDK SE

To use the EnOS Device SDK for MQTT for Java, you will need to install Java SE 8.

Installing Maven

To use EnOS Device SDK for MQTT for Java, we recommend you use Maven 3.

Obtaining EnOS Device SDK for MQTT for Java

You can obtain the EnOS Device SDK for MQTT for Java through the following methods:

  • Include the project as a dependency in your Maven project
  • Download the source code by cloning this repo and build on your machine

Including Dependency in Maven Project

This is the recommended method of including the EnOS IoT SDKs in your project.

  • Navigate to http://search.maven.org, search for com.envisioniot.enos and take note of the latest version number (or the version number of whichever version of the sdk you desire to use).

  • In your main pom.xml file, add the EnOS Device SDK for MQTT for Java as a dependency as follows:

    <dependency>
        <groupId>com.envisioniot</groupId>
        <artifactId>enos-mqtt</artifactId>
        <version>2.1.0</version>
        <!--You might need to change the version number as you need.-->
    </dependency>
    

Building from Source Code

  • Get a copy of the EnOS Device SDK for MQTT for Java from master branch of the GitHub (current repo). You should fetch a copy of the source from the master branch of the GitHub repository: https://github.com/EnvisionIot/enos-iot-mqtt-java-sdk

    git clone https://github.com/EnvisionIot/enos-iot-mqtt-java-sdk.git
    
  • When you have obtained a copy of the source, you can build the SDK for Java.

Key Features

The EnOS Device SDK for MQTT for Java supports the following functions:

  • Registration of devices
  • Add, update, query, or delete of gateway devices
  • Online and offline of sub-devices
  • Create or delete of device tags
  • Create device measurepoints
  • Upload device alerts
  • Upload device messages
  • Set device measurepoints and get measurepoint data
  • Enable device services
  • Send messages on device startup, stop, and delete

Sample Code

About

EnOS Iot Mqtt SDK Java Edition

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages