The publisher
A simulated sensor generates a value and publishes it to the configured broker. Start with one device and one topic so each message is easy to follow.
IoT & SENSOR NETWORKS
Build a simulated IoT network and explore how telemetry moves from a device through an MQTT broker to a subscriber. Connect messaging behavior with the network that carries it.
22.4 °CTHREE ROLES. ONE MESSAGE.
In a publish–subscribe exercise, the sensor sends a reading to a named topic. The broker matches that topic to subscriptions and forwards the message to connected subscribers. nuLAB lets you investigate this flow alongside the simulated topology.
A simulated sensor generates a value and publishes it to the configured broker. Start with one device and one topic so each message is easy to follow.
The messaging service connects publishers with subscribers. Check broker reachability and the topic before assuming that a missing value is a sensor problem.
A matching subscription receives the published value. Inspect the intended recipient and compare its topic with the publisher’s topic.
A SMALL MQTT EXPERIMENT
Use a temperature sensor, a reachable broker, and a subscriber. Give the publisher and subscriber the same topic, then observe a reading such as 22.4 °C moving through the lab.
Keep the network path unchanged during the topic experiment. That helps you distinguish a messaging mismatch from a connectivity failure.
Publisher: Room temperature sensor
Broker: Lab MQTT broker
Topic: lab/room/temperature
Payload: 22.4
Unit: °C
Subscription: lab/room/temperature
Question:
Does the subscriber receive this reading?WHEN A MESSAGE DOES NOT ARRIVE
| Layer | Question to ask | What to compare |
|---|---|---|
| Network | Can the publisher and subscriber reach the broker? | Connected links, device addresses, and any routing required by the topology. |
| Messaging | Is the subscriber connected with the intended subscription? | The broker destination, published topic, and subscription filter. |
| Device | Is the sensor publishing the value you expect? | The configured sensor state and observed message, using supported device controls. |
Simulated message delivery helps explain system behavior. It does not establish radio range, battery life, physical sensor accuracy, production broker capacity, or compliance with an industrial safety requirement.
BEFORE YOU START
TAKE THE NEXT STEP
Tell us which sensors, messaging behavior, and network conditions you want to explore. We will help establish the fit and required access.
Talk about your IoT scenario