In this chapter, we looked at the different ways of using QSensors to read a device's sensor data. There are many supported platforms for Qt Sensors: Android, iOS, WinRT , SensorTag, Sensorfw, Linux generic, and Linux iio-sensor-proxy. Sensorfw also has support for Linux's IIO sensors.
I described how to implement custom QSensor and QSensorBackend to add support for sensors not currently supported in Qt Sensors.
We went through the steps involved in using QtMqtt to talk to an mqtt broker, and we looked at how to use QWebsockets to communicate to a web server web page.
Then I threw them all together to grab sensor data from a Sense HAT, and publish them to mqtt broker by way of WebSockets.
In the next chapter, we will discuss using GPS data comprising of location and position and mapping.