Coding a surfboard sensor emulator

First, we will create a CSV file with many status, speed in mph, altitude in feet, and temperature in degrees Fahrenheit values separated by commas. Each line in the file will represent a set of values that the surfboard sensor emulator will publish to the appropriate topics. In this case, it is not convenient to work with random values because we want to emulate real-life scenarios for a surfer and his surfboard.

Now, we will create a new file named surfboard_sensors_data.csv in the main virtual environment folder. The following lines show the code that defines the data retrieved from a short surfing session for the surfer and their surfboard.

The values separated with commas from left to right are the ...

Get Hands-On MQTT Programming with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.