Reader small image

You're reading from  Hands-On Embedded Programming with Qt

Product typeBook
Published inJul 2019
Reading LevelIntermediate
PublisherPackt
ISBN-139781789952063
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
John Werner
John Werner
author image
John Werner

John Werner is an internationally published author, engineer, consultant, and conference speaker with more than 15 years' experience. He has earned patents for inventions ranging from Inkjet printers to automotive ignition systems. John was one of the early users of Qt on QNX and contributed to the early knowledge of how to make it work. He is a contributor to the Qt-related information on Stack Exchange. He is currently a senior software engineer, specializing in Qt development, for Caliber Imaging & Diagnostics.
Read more about John Werner

Right arrow

Weaving a web of sockets

Never quite happy with what we give them, marketing has decided we need to add yet another feature to the BigProject:

  • Requirement 20: It should be possible to remotely monitor the temperature reading

To implement this requirement, we will use WebSocket. A WebSocket is a bi-directional connection over TCP (the first part of TCP/IP) that is commonly used with web applications. Because we are learning about Qt, we will use Qt's WebSocket support.

Websockets require two halves—a server that provides data and a client that consumes the data. Every time new data is available, the server will send the data down the WebSocket to the client using JSON. The client will then determine how it wants to handle the data.

The more I work with Qt, the more I enjoy it. It feels like the Qt Framework was developed by real engineers who wanted to solve real...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Embedded Programming with Qt
Published in: Jul 2019Publisher: PacktISBN-13: 9781789952063

Author (1)

author image
John Werner

John Werner is an internationally published author, engineer, consultant, and conference speaker with more than 15 years' experience. He has earned patents for inventions ranging from Inkjet printers to automotive ignition systems. John was one of the early users of Qt on QNX and contributed to the early knowledge of how to make it work. He is a contributor to the Qt-related information on Stack Exchange. He is currently a senior software engineer, specializing in Qt development, for Caliber Imaging & Diagnostics.
Read more about John Werner