Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Simple CoAP Client Example

// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef OPTIONDIALOG_H
#define OPTIONDIALOG_H

#include <QCoapOption>
#include <QDialog>

namespace Ui {
class OptionDialog;
}

class OptionDialog : public QDialog
{
    Q_OBJECT

public:
    explicit OptionDialog(QWidget *parent = nullptr);
    ~OptionDialog();

    QList<QCoapOption> options() const;

private slots:
    void on_addButton_clicked();
    void on_clearButton_clicked();

private:
    void fillOptions();

    Ui::OptionDialog *ui;
    QList<QCoapOption> m_options;
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded