https://github.com/datavenueliveobjects/liveobjectsmqttdevicesample
https://github.com/datavenueliveobjects/liveobjectsmqttdevicesample
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/datavenueliveobjects/liveobjectsmqttdevicesample
- Owner: DatavenueLiveObjects
- License: other
- Created: 2020-11-26T10:43:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-27T17:23:00.000Z (over 3 years ago)
- Last Synced: 2025-02-06T15:53:31.381Z (4 months ago)
- Language: Java
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LiveObjectsMqttDeviceSample
- Software Name : Live Objects Mqtt Device Sample
- Version: 1.0
- SPDX-FileCopyrightText: Copyright (c) 2019-2020 Orange Business Services
- SPDX-License-Identifier: BSD-3-Clause
- This software is distributed under the BSD-3-Clause,
the text of which is available at https://opensource.org/licenses/BSD-3-Clause
or see the "LICENCE" file for more details.
- Software description: Sample application for Orange Datavenue Live Objects https://liveobjects.orange-business.comIt is a device sample: it exchanges MQTT payloads with Live Objects as an MQTT device ('json+device' user name).
It can generate standard Live Objects messages as follows :
```
{
"streamId":"device1stream",
"timestamp":"2019-09-01T15:52:31.150Z",
"location":{"lat":45.759723,"lon":4.84223},
"model":"devtype1",
"value":
{
"hygrometry": xx,
"temperature": xx,
"log": "xx"
},
"tags":["SampleTag"],
"metadata":{"source":"urn:lo:nsid:samples:device1","connector":"mqtt"}
}
```It also handles Live-Objects-managed parameters, remote commands, and firmware updates.
This sample generates the same kind of payload as the Android app available at :
https://play.google.com/store/apps/details?id=com.orange.lo.assetdemoInstallation 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".2) Generate your Device API key : menu Configuration/API Keys (https://liveobjects.orange-business.com/#/config/apikeys) click on "Add", select 'MQTT device' profile rights.
3) Paste the key in MyDevice.java, API_KEY variable. Adapt other neighbour constants to your needs.
4) Build as a standard Maven project into you IDE (eg Idea, Eclipse, ...).