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

Latest commit

 

History

History

data-mqtt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

The Things Network Java MQTT Client Build Status MAVEN

This is the Java MQTT client for The Things Network to receive activations and messages from IoT devices via The Things Network and send messages as well.

Maven MAVEN

Depend on the artifact via Maven:

<dependency>
  <groupId>org.thethingsnetwork</groupId>
  <artifactId>data-mqtt</artifactId>
  <version>2.1.3</version>
</dependency>

Documentation

A Quick Start and full API Reference can be found in The Things Network Documentation.

Smaple & Test Build Status

A sample app is included. To run:

  1. Install OpenJDK or Java.

  2. Download and Instal Maven.

  3. Download or clone the repository.

  4. Build and cache the artifact:

    mvn clean package install
  5. export your region, Application ID and Access Key as environment variables.

    export region="eu"
    export appId="my-app-id"
    export accessKey="my-access-key"
  6. Build and run the MQTT sample:

    cd samples/mqtt
    mvn clean compile exec:java -Dexec.mainClass="org.thethingsnetwork.samples.mqtt.App"