You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Please note, that the json-files are exported from another tenant. So their migh
30
30
31
31
| Name | Description | Complexity Rating | Prerequisites |
32
32
| --- | --- | --- | --- |
33
-
|[Command MQTT devices connected via MindConnect](./commandMqttDevice_MindConnect/readme.md)| Send commands back to a device via MindConnect MQTT |:star::star:| IoT Extension|
33
+
|[Command MQTT devices connected via MindConnect](./commandMqttDevice_MindConnect/readme.md)| Send commands back to a device via MindConnect MQTT |:star:| MindConnect MQTT connected device |
34
34
|[Command MQTT devices connected via IoT Extension](./commandMqttDevice_IoT-Extension/readme.md)| Send a command to a device via IoT Extension |:star::star:| IoT Extension|
35
35
|[Create custom API endpoints](./createCustomEndpoint/readme.md)||:star:| - |
36
36
|[Create rule for asset type](./createRuleForAssetType/readme.md)| Create a rule for all assets of this type |:star:| - |
"name": "MindConnect MQTT - commading of a device",
7
+
"info": "- sends a command to a device which is connected via MindConnect MQTT",
8
+
"sticky": 1,
9
+
"x": 360,
10
+
"y": 1720,
11
+
"wires": [],
12
+
"readOnly": false,
13
+
"userName": "CloudFoxUser",
14
+
"tenant": "presiot"
15
+
},
16
+
{
17
+
"id": "5d4d2d1e.1be5f4",
18
+
"type": "comment",
19
+
"z": "cba45765.fb58c8",
20
+
"name": "adjust here:",
21
+
"info": "- MQTT clientID(s)\n- commanding payload (data) for device",
22
+
"sticky": 1,
23
+
"x": 460,
24
+
"y": 1820,
25
+
"wires": [],
26
+
"readOnly": false,
27
+
"userName": "CloudFoxUser",
28
+
"tenant": "presiot"
29
+
},
30
+
{
31
+
"id": "6dadce05.535e5",
32
+
"type": "debug",
33
+
"z": "cba45765.fb58c8",
34
+
"name": "",
35
+
"active": true,
36
+
"console": "false",
37
+
"xaxis": "_time",
38
+
"complete": "payload",
39
+
"x": 970,
40
+
"y": 1880,
41
+
"wires": [],
42
+
"readOnly": false,
43
+
"userName": "CloudFoxUser",
44
+
"tenant": "presiot"
45
+
},
46
+
{
47
+
"id": "100131f0.458a6e",
48
+
"type": "function",
49
+
"z": "cba45765.fb58c8",
50
+
"name": "edit clientID and data",
51
+
"func": "/**in the body of the request, specify \n - clientID(s) which should received the command. Can be one or multiple clients\n - in the 'data' section, specify the command-payload to be send to the device. \n This will be received on the device at the command-subscription topic. \n\nExample: \n- tenant: presiot\n- device name: CloudFox-Laptop\n- clientID: presiot_CloudFox-Laptop\n- commanding topic: tc/presiot/presiot_CloudFox-Laptop/i/cmd_v3/c\n\n**/\nvar name = \"a commanding information for my device\";\nvar clientIDs = [\"presiot_CloudFox-Laptop\"]; \nvar commandingData = {\n\"configuration\": \"sample config v1.4.3\",\n\"data\": \"hello world\",\n\"INTvalue\": 5,\n\"light-status\": true,\n\"motor_rpm_setpoint\": 1200.5\n }\n\n//setup body for commanding request\nmsg.payload = {\n\"name\": name,\n\"clientIds\": clientIDs,\n\"data\": commandingData\n}\nreturn msg;",
0 commit comments