-
Notifications
You must be signed in to change notification settings - Fork 32
/
HOWTO
35 lines (20 loc) · 1.01 KB
/
HOWTO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Fast track:
1. Go to tools/viewer, run mqtt_udp_view (you will need Java 8) - it will start visual MQTT/UDP traffic viewer.
2. Go to lang/python3/examples and run random_to_udp.py (you will need python 3.x) - it will start sending MQTT/UDP messages with random content. (If you love python 2.x, use lang/python/... dir instead.
3. See viewer shows same data random_to_udp.py sends.
Congratulations, MQTT/UDP is basically working.
Now as you can both montior incoming traffic and generate outgoing, you can start embedding MQTT/UDP into your projects.
You have test environment set up.
You can also dump all traffic with:
lang/python/examples/listen.py
lang/python3/examples/listen.py
lang/lua/examples/mqtt_sub.lua
lang/c/mqtt_udp_listen
You can also generate MQTT/UDP traffic with:
lang/python/mqttudp/pub.py
lang/python3/mqttudp/pub.py
lang/lua/examples/mqtt_pub.lua
lang/c/mqtt_udp_pub
And (not from cmd line, though) even with:
lang/codesys/MQTT_UDP.EXP
lang/java ru.dz.mqtt_udp.util.Pub class