O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Publishing sensor readings

To start with, our data transmission application will only deal with one major feature — a broadcaster publishes some sensor readings, and these are made available to clients via a Bluetooth connection.

Here is the use case scenario:

Feature: broadcaster publishes sensor readings    Background:        Given there is a broadcaster        And there is a sensor        And the broadcaster connects to the sensor    Scenario: sensor emits one reading        Given the sensor emits a reading        When the broadcaster publishes the sensor readings        Then the corresponding published reading coincides with the sensor reading

We are, as usual, setting up some preconditions, performing an action (the broadcaster publishes the sensor reading), and defining one or more ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required