mirror of https://github.com/nymea/nymea-mqtt
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
/****************************************************************************
|
|
**
|
|
** Copyright (C) 2019 guh GmbH
|
|
** Contact: https://www.nymea.io/licensing/
|
|
**
|
|
** This file is part of nymea
|
|
|
|
** Commercial License Usage
|
|
** Licensees holding valid commercial nymea licenses may use this file in
|
|
** accordance with the commercial license agreement provided with the
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
** a written agreement between you and guh GmbH. For licensing terms
|
|
** and conditions see https://www.nymea.io/terms-conditions. For further
|
|
** information use the contact form at https://www.nymea.io/imprint.
|
|
**
|
|
** GNU General Public License Usage
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
** General Public License version 3.0 as published by the Free Software
|
|
** Foundation and appearing in the file LICENSE.GPLv3 included in the
|
|
** packaging of this file. Please review the following information to
|
|
** ensure the GNU General Public License version 3.0 requirements will be
|
|
** met: https://www.gnu.org/licenses/gpl.html
|
|
**
|
|
**
|
|
****************************************************************************/
|
|
|
|
|
|
#include <QCoreApplication>
|
|
|
|
#include "mqttserver.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QCoreApplication a(argc, argv);
|
|
|
|
MqttServer server;
|
|
server.listen(QHostAddress::AnyIPv4, 1883);
|
|
|
|
return a.exec();
|
|
}
|