
136 Building Smarter Planet Solutions with MQTT and IBM WebSphere MQ Telemetry
5. Enter a topic for publication, such as Company/daily/Truck13. Do not publish yet, because
the subscriber instance is not yet set up.
6. Start another instance of the WMQTT Utility. This instance will be the subscriber.
7. Enter the IP address for the queue manager (MQTT.QMGR00).
8. Enter a client ID, in this case, TruckPosition.
9. Click Connect. The subscriber is now connected to the broker.
10.Enter the topic to which you are subscribing, as in Truck/address.
11.Click Subscribe. You are now subscribing to the truck/position topic.
Running the sample
To run the application ...