forked from lyq/smart-greenhouse
32 lines
445 B
C++
32 lines
445 B
C++
#include "mainmenu.h"
|
|
|
|
#include "cnetworkutil.h"
|
|
|
|
#include <QApplication>
|
|
|
|
void showConnected()
|
|
{
|
|
if(networkUtil->isConnected())
|
|
{
|
|
qDebug("connected");
|
|
}
|
|
else
|
|
{
|
|
qDebug("unconnected");
|
|
}
|
|
|
|
}
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
MainMenu w;
|
|
|
|
showConnected();
|
|
//networkUtil->connect("192.168.72.129",8888);
|
|
showConnected();
|
|
w.show();
|
|
return a.exec();
|
|
}
|