Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Cloud of Things Java MQTT SDK (Cloud der Dinge Java MQTT SDK)

License

Notifications You must be signed in to change notification settings

cloud-of-things/cot-mqtt-sdk

Repository files navigation

API to service access to the MQTT broker for bootstrapping and CoT interaction

The nbIoT-MQTT API allows device developers to bootstrap their devices against Cumulocity and allows subscribing and publishing with the MQTT-Broker without having to implement it themselves. The API is based on Vert.x.

Including the API in a project

Maven:

<dependency>
    <groupId>com.telekom.m2m.cot</groupId>
    <artifactId>cot-mqtt-sdk</artifactId>
    <version>version-number</version>    
</dependency>

Gradle:

compile "com.telekom.m2m.cot:cot-mqtt-sdk:version-number"

Repository Location

https://github.com/cloud-of-things/cot-mqtt-sdk

JavaDocs

The API docs are located under https://cloud-of-things.github.io/cot-mqtt-sdk/

License

The API is licensed under MIT license. With the gradle task generateLicenseReport you can get a report of license included software uses

User Manual

After the API is included in your Project, you can use the method getInstance() to initialise the API. In case you implemented your own Vert.x instance, you should pass your instance in the aforementioned mentioned method (getInstance(Vertx)).

Available methods:

  • registerDevice(String, Properties, Consumer)
  • subscribeToTopic(String, Properties, Consumer, Consumer)
  • publishTopic(String, String, Properties, Consumer)
  • unsubscribeFromTopic(String, Properties, Consumer)
  • For more information regarding these methods (explanation, examples, etc.) please see the asciidoc located at "asciidoc/README.adoc".

    Release notes

    Version 1.0.0

    • LICENSE and NOTICE files included
    • improved stability of integration tests

    Version 0.5.3

    • bootstrapping - nbIoT-devices can now be bootstrapped and receives the credentials from CoT, persists device data in the nbIoT environment and creates managed Objects over SmartREST for shell access.
    • messaging - API helps the devices with subscribing on topics to receive messages from the MQTT-Broker and helps with sending SmartREST messages to the CoT.

About

Cloud of Things Java MQTT SDK (Cloud der Dinge Java MQTT SDK)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages