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

Implementing the Broadcaster entity

The Broadcaster entity is responsible for collecting sensor readings from one or more sensors and for publishing them, that is, processing them or filtering them out as needed, and making them available to the outside world for either local or remote consumption.

There are several ways in which the sensor readings gathering might be implemented. In the current scenario, we have limited ourselves to a simple Qt signal/slot connection, where the signal is fired by a sensor and the processing happens in the broadcaster's slot. Of course, this might not always be the best option; you might prefer some sort of polling mechanism, which might be a responsibility of the broadcaster, or of a dedicated component, ...

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