November 2018
Intermediate to advanced
1150 pages
24h 11m
English
Just like we did for BroadcasterChannel, we will implement the abstract ReceiverChannel API that we have already created for the Bluetooth implementation in Chapter 30, Building a Mobile Dashboard to Display Real-Time Sensor Data. To do so, we will add a ReceiverHttp class to the already existing channel_receiver.pri file. The following is the header file containing the class, which extends ReceiverChannel:
// receiver_http.h#ifndef RECEIVER_HTTP_H#define RECEIVER_HTTP_H#include <QObject>#include "receiver_channel.h"namespace channels {class ReceiverHttp : public ReceiverChannel{ Q_OBJECTpublic: explicit ReceiverHttp(QObject *parent = nullptr); ~ReceiverHttp(); Q_INVOKABLE void init() override;public slots: ...Read now
Unlock full access