https://github.com/akamai/java-simple-mqtt-device
This is where some sample Java MQTT Paho client programs (multiple but one project) show how to connect to IoT Edge Connect
https://github.com/akamai/java-simple-mqtt-device
iot mqtt
Last synced: 11 months ago
JSON representation
This is where some sample Java MQTT Paho client programs (multiple but one project) show how to connect to IoT Edge Connect
- Host: GitHub
- URL: https://github.com/akamai/java-simple-mqtt-device
- Owner: akamai
- License: apache-2.0
- Created: 2019-06-19T20:17:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T15:18:50.000Z (about 3 years ago)
- Last Synced: 2024-04-15T16:22:14.666Z (about 2 years ago)
- Topics: iot, mqtt
- Language: Java
- Homepage:
- Size: 77.1 KB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Java Simple MQTT device
* [Overview](#overview)
* [Get started](#get-started)
* [Publish and Subscribe](#publish-and-subscribe)
* [Notice](#notice)
# Overview
This is where some sample MQTT Paho client (https://www.eclipse.org/paho/) programs (multiple but one project) show how to connect to IoT Edge Connect.
# Get started
In order to start using `java-simple-mqtt-device` MQTT client, add `configuration.txt` file to `/resources` folder.
It should has the following syntax:
```
mqtt.host =
topic.prefix =
client.id.prefix =
```
**Note:** You should receive a configuration file from [IoTDevelopers@akamai.com](mailto:IoTDevelopers@akamai.com), after requesting a Sandbox.
# Publish and Subscribe
There are two main files to run:
1. com.akamai.iot.iec.SimplePublisher.java
2. com.akamai.iot.iec.SimpleSubscriber.java
Upon running, you will be prompted to provide `username` and `password` to your Sandbox.
Look for the details in the email received from [IoTDevelopers@akamai.com](mailto:IoTDevelopers@akamai.com), after requesting a Sandbox.
Sample users received in an email:
```
Device users: user_1, user1_2, user1_3, user1_4
User's default password: secret
```
**Note:** Default password is the same for all the device users.
# Notice
Copyright © 2019-2020 Akamai Technologies, Inc.
Your use of Akamai's products and services is subject to the terms and provisions outlined in [Akamai's legal policies](https://www.akamai.com/us/en/privacy-policies/).