/SampleLOSubscribeData

Collects MQTT data from Live Objects as an Application

Primary LanguageJava

SampleLOSubscribeData

Sample application for Datavenue Live Objects https://liveobjects.orange-business.com

It is a simple sample that collect a MQTT data from Live Objects as an application

Installation notes

  1. Create an account on Live Objects. You can get a free account (10 MQTT devices for 1 year) at : https://liveobjects.orange-business.com/#/request_account
    Don't check "Lora" otherwise the account will not be instantly created.

  2. create a Fifo which will collect and buffer the data, use the portal (https://liveobjects.orange-business.com/#/datastore/fifo) or the API (https://liveobjects.orange-business.com/swagger-ui/index.html#!/Bus_management)

  3. create a route that will bind your source with the Fifo, use the portal (https://liveobjects.orange-business.com/#/datastore/routing) or the API (https://liveobjects.orange-business.com/swagger-ui/index.html#!/Triggers_and_Actions/createUsingPOST_1)

  4. Generate your Application API key : menu Configuration/API Keys (https://liveobjects.orange-business.com/#/config/apikeys) click on "Add", select 'Application' profile rights

  5. Create a MyKey class with the generated API key:

    package com.test.SampleLOSubscribeData;

    public final class MyKey { static String key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; }

  6. You will find into the repository 4 jar files into the /lib. Add them as "external JARs" into you IDE (eg Eclipse).


Usefull links

If you need to generate data, use the SampleLOSendData sample or the Android app at : https://play.google.com/store/apps/details?id=com.orange.lo.assetdemo

For more information about the API uses : https://github.com/DatavenueLiveObjects/Postman-collections-for-Live-Objects/blob/master/Live%20Objects%20Training%20publish.postman_collection.json


Important note

The 'bridge' user name ('json+bridge' and 'payload+bridge') will be deprecated end 2019. Therefore the topic : '~event/v1/data/new/#' will no longer be supported.