-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Hands-On MQTT Programming with Python
By :

The IoT board uses the following topic names to publish data about a specific surfboard, where surfboardname
must be replaced with a unique name assigned to a surfboard:
Variable | Topic name |
Status |
|
Speed (mph) |
|
Altitude (feet) |
|
Water temperature (degrees Fahrenheit) |
|
For example, if we assign surfboard01
as the name for the surfboard, the client that wants to receive the actual speed for the surfboard has to subscribe to the surfboards/surfboard01/speedmph
topic.
The IoT board and its connected sensors are capable of distinguishing between the following five possible statuses of a surfer and their surfboard:
Status key | Meaning |
| Idle |
| Paddling |
| Riding |
| Ride finished |
| Wiped out |
The IoT board publishes the integer value specified in the status key column that indicates the current status of a surfer and their surfboard. For example, when a...