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

Creating a BroadcasterChannel based on HTTP

In Chapter 8Building a Mobile Dashboard to Display Real-Time Sensor Data, we designed and implemented a communication channel for the Broadcaster entity. This BroadcasterChannel is responsible for wiring sensor readings over a connection. While we implemented a version of the channel based on the classic Bluetooth, we wisely decided to consider this choice an implementation detail by assigning the role of an interface to BroadcasterChannel and subclassing the specific classic Bluetooth implementation as BroadcasterBt. This choice provides us with several benefits, as follows:

  • The reuse of common functionality across implementations (for example, the connectToBroadcaster method)
  • A transparent ...

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