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: docs/integrate/node-red/mqtt-tutorial.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,12 @@ You need:
13
13
14
14
## Producing data
15
15
16
-
First, generate data to populate the MQTT topic with Node-RED. If you already have an MQTT topic with regular messages, you can skip this part.
17
-
{h=134px}
16
+
First, generate data to populate the MQTT topic with Node-RED. If you already
17
+
have an MQTT topic with regular messages, you can skip this part.
18
+
{width=480px}
18
19
19
20
The `inject` node creates a JSON payload with three attributes:
20
-
{h=293px}
21
+
{width=480px}
21
22
22
23
In this example, two fields are static; only the timestamp changes.
23
24
Download the full workflow definition: [flows-producer.json](https://community.cratedb.com/uploads/short-url/eOvAk3XzDkRbNZjcZV0pZ0SnGu4.json) (1.3 KB)
@@ -60,7 +61,7 @@ Download the full workflow definition: [flows-consumer.json](https://community.c
60
61
## Testing
61
62
62
63
To test the workflow, click the square to the left of the timestamp node
63
-
({w=30px})
64
+
({width=30px})
64
65
to inject a message. In this configuration, an INSERT triggers after two
65
66
messages or after ten seconds if a second message does not arrive.
66
67
@@ -69,4 +70,4 @@ Then run a SELECT statement on your CrateDB cluster to see the inserted rows:
69
70
SELECT*
70
71
FROM nodered_target;
71
72
```
72
-
{w=640px}
73
+
{width=640px}
0 commit comments