-
Notifications
You must be signed in to change notification settings - Fork 26
Create test-text.md #3631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Create test-text.md #3631
Changes from 4 commits
eb16996
ab2cd00
2ed9f77
e9bd15f
d1dffd9
b775a3d
096549a
2c313cd
3e1e0fa
bc9719b
835430b
c5c0aa5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| Step-by-step guide for MQTT Service device connection | ||
eickler marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| 1. Make sure the MQTT Service is available | ||
|
||
| First, check that all prerequisites are fulfilled. Check if MQTT Service is already available for your Cumulocity tenant. | ||
BeateRixen marked this conversation as resolved.
Show resolved
Hide resolved
eickler marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| For that, navigate to **Administration** → **Ecosystem** → **Microservices** in your tenant. | ||
BeateRixen marked this conversation as resolved.
Show resolved
Hide resolved
eickler marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Filter or look for Mqtt-service and Messaging-management. | ||
|
|
||
| Here we go, MQTT-Service & Messaging-management are installed. | ||
BeateRixen marked this conversation as resolved.
Show resolved
Hide resolved
eickler marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| 2. Install management UI | ||
| Now we should make sure to install the new Management UI for MQTT Service and Notification 2.0. | ||
|
||
|
|
||
| You can find it on the user menu when clicking on your user profile in the top right. Select Manage beta features in the section Beta features. | ||
|
||
|
|
||
| Toggle the Messaging service-monitoring & management | ||
BeateRixen marked this conversation as resolved.
Show resolved
Hide resolved
eickler marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| After an automated refresh, you should see a new Monitoring Navigation point to enter the management UI. | ||
|
||
|
|
||
| 3. Select the right MQTT device | ||
| Now we are ready to connect a device via MQTT. There are plenty of MQTT devices out there. | ||
|
||
|
|
||
| Physical device | ||
| Normally, you would select a physical device. The easiest ones already have an MQTT client embedded, and you just need to configure the broker. | ||
eickler marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| There are plenty of examples of devices like smart cameras, smart gateways, PLCs, and many more. | ||
|
|
||
| Alternatively, you can also build your own device like using an ESP32 and attaching any sensor. | ||
eickler marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| With that, you can connect to MQTT Service: https://esphome.io/components/mqtt.html | ||
|
|
||
| Please note: Be aware of the current limitations of MQTT Service, which could result in your device being unable to connect, such as: | ||
BeateRixen marked this conversation as resolved.
Show resolved
Hide resolved
eickler marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Last Will Retained Message - results in the device being rejected | ||
BeateRixen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Clean Session / Clean Start must be set to true - otherwise, the device is rejected | ||
BeateRixen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Simulators | ||
| If you don’t have a physical device at hand, you can also use simulators to publish data to MQTT Service. | ||
|
|
||
| For example, you can use a nodeRED flow to generate data and publish it to MQTT Service, e.g., check out this simple flow | ||
|
||
|
|
||
| Another example could be a small Python script to generate data and publish it to MQTT. | ||
eickler marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Here is an example: | ||
| https://github.com/DamascenoRafael/mqtt-simulator | ||
|
|
||
| MQTT client | ||
| Also, of course, you can just use any MQTT Client like MQTTx, connect manually to MQTT Service, and publish messages or subscribe on topics. | ||
|
||
|
|
||
| In this guide, I will demonstrate connecting using an MQTT Client and a Device Simulator. | ||
|
||
Uh oh!
There was an error while loading. Please reload this page.