Skip to content

Commit a6d19c9

Browse files
committed
add output
1 parent 848bb2e commit a6d19c9

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

articles/iot-operations/connect-to-cloud/tutorial-mqtt-bridge.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ wget https://raw.githubusercontent.com/Azure-Samples/explore-iot-operations/main
531531
Apply the deployment file with kubectl.
532532

533533
```bash
534-
kubectl apply -f client.yaml
534+
kubectl apply -f mqtt-client.yaml
535535
```
536536

537537
```output
@@ -584,7 +584,27 @@ mosquitto_pub -h aio-broker -p 18883 \
584584

585585
In the subscriber shell, you see the messages you published.
586586

587-
<!-- TODO: add actual mosquitto output -->
587+
```Output
588+
Client null sending CONNECT
589+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 received CONNACK (0)
590+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 sending SUBSCRIBE (Mid: 1, Topic: tutorial/#, QoS: 0, Options: 0x00)
591+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 received SUBACK
592+
Subscribed (mid: 1): 0
593+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 sending PINGREQ
594+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 received PINGRESP
595+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 received PUBLISH (d0, q0, r0, m0, 'tutorial/local', ... (52 bytes))
596+
This message goes all the way to the cloud and back!
597+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 received PUBLISH (d0, q0, r0, m0, 'tutorial/local', ... (52 bytes))
598+
This message goes all the way to the cloud and back!
599+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 received PUBLISH (d0, q0, r0, m0, 'tutorial/local', ... (52 bytes))
600+
This message goes all the way to the cloud and back!
601+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 received PUBLISH (d0, q0, r0, m0, 'tutorial/local', ... (52 bytes))
602+
This message goes all the way to the cloud and back!
603+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 received PUBLISH (d0, q0, r0, m0, 'tutorial/local', ... (52 bytes))
604+
This message goes all the way to the cloud and back!
605+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 sending PINGREQ
606+
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 received PINGRESP
607+
```
588608

589609
Here, you see the messages are published to the local Azure IoT Operations broker to the `tutorial/local` topic, bridged to Event Grid MQTT broker, and then bridged back to the local Azure IoT Operations broker again on the `tutorial/cloud` topic. The messages are then delivered to the subscriber. In this example, the round trip time is about 80 ms.
590610

0 commit comments

Comments
 (0)