summaryrefslogtreecommitdiffstats
path: root/examples/protobuf/sensors/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Correct license for example filesLucie Gérard2024-04-041-1/+1
| | | | | | | | | | | | According to QUIP-18 [1], all example files should be LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Task-number: QTBUG-121787 Change-Id: If6b8c8eb88c8880e6e277f472dfdd5b380a5c83d Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit 4b21c9ef0d7639ce94f5c88a1ef0c699522e7e19)
* Add example of communication using protobuf messagesAlexey Edelev2023-02-131-0/+32
Add the protobuf example that emulates the work of dummy sensors that send data to the sensor client. The example uses UDP sockets to send datagrams that contain protobuf messages. Messages consist of two layers: - The Type-Length-Value wrapping message that specifies the the message type and allows to verify the message size. - Sensor message that contains a sensor data. The example intends to show how to generate the code from the protobuf schema and use it in simple UDP signalling protocol on both sender and receiver sides. Both client and emulator have simple UI implemented using QtWidgets. Task-number: QTBUG-109598 Pick-to: 6.5 Change-Id: I13e2c5bcd995b8aa6d873c495a7bd83f6651a061 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>