Add labs
This commit is contained in:
7
01-basics/lab11/docker-compose.yml
Normal file
7
01-basics/lab11/docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
services:
|
||||
mosquitto:
|
||||
image: eclipse-mosquitto
|
||||
ports:
|
||||
- "1883:1883"
|
||||
volumes:
|
||||
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
|
||||
32
01-basics/lab11/lab.txt
Normal file
32
01-basics/lab11/lab.txt
Normal file
@ -0,0 +1,32 @@
|
||||
= Wireshark
|
||||
|
||||
|
||||
Installieren Sie Wireshark und/oder tshark.
|
||||
|
||||
$ sudo apt update; sudo apt -y install tshark wireshark
|
||||
|
||||
|
||||
Verwenden Sie Wireshark (oder tshark) mit Port 1883 und MQTT Protokollanalyse
|
||||
|
||||
Wireshark: Interface "loopback / lo ", Apply a display filter: "tcp.port == 1883"
|
||||
|
||||
tshark:
|
||||
|
||||
$ tshark -s 1500 -i lo -n -x -O mqtt port 1883
|
||||
|
||||
|
||||
|
||||
Senden Sie die Nachricht 'hello trion' an das Topic `training`
|
||||
|
||||
$ docker run --rm -it --net host eclipse-mosquitto mosquitto_pub \
|
||||
--topic training --message "hello trion"
|
||||
|
||||
|
||||
Analysieren Sie die gesendeten und empfangenen Daten
|
||||
|
||||
|
||||
|
||||
|
||||
= Quellen
|
||||
|
||||
Wireshark: https://www.wireshark.org/
|
||||
4
01-basics/lab11/mosquitto.conf
Normal file
4
01-basics/lab11/mosquitto.conf
Normal file
@ -0,0 +1,4 @@
|
||||
listener 1883
|
||||
allow_anonymous true
|
||||
|
||||
# sys_interval 3
|
||||
Reference in New Issue
Block a user