@@ -42,7 +42,7 @@ Create3Widget::Create3Widget(Device *device, QWidget *parent)
42
42
connect (ui->Create3SensorListButton , SIGNAL (clicked ()), SLOT (sensorList ()));
43
43
connect (ui->Create3ExampleProgramButton , SIGNAL (clicked ()), SLOT (exampleList ()));
44
44
45
- startCreate3Service = new QProcess (this );
45
+ // startCreate3Service = new QProcess(this);
46
46
stopCreate3Service = new QProcess (this );
47
47
48
48
ui->create3IP ->setText (getIP ());
@@ -140,27 +140,27 @@ void Create3Widget::resetServer()
140
140
qDebug () << " Create3 Server failed to stop or crashed." ;
141
141
}
142
142
143
- QString startCommand = " sudo" ;
144
- QStringList startArgs = {
145
- " systemctl" ,
146
- " start" ,
147
- " create3_server.service"
148
- };
149
-
150
- connect (startCreate3Service, &QProcess::readyReadStandardError, [=]() {
151
- QByteArray data = startCreate3Service->readAllStandardError ();
152
- qDebug () << " Error:" << data;
153
- });
154
-
155
- // Start process to start server
156
- if (startCreate3Service->startDetached (startCommand, startArgs))
157
- {
158
- qDebug () << " Create3 Server successfully started" ;
159
- }
160
- else
161
- {
162
- qDebug () << " Create3 Server failed to start or crashed." ;
163
- }
143
+ // QString startCommand = "sudo";
144
+ // QStringList startArgs = {
145
+ // "systemctl",
146
+ // "start",
147
+ // "create3_server.service"
148
+ // };
149
+
150
+ // connect(startCreate3Service, &QProcess::readyReadStandardError, [=]() {
151
+ // QByteArray data = startCreate3Service->readAllStandardError();
152
+ // qDebug() << "Error:" << data;
153
+ // });
154
+
155
+ // // Start process to start server
156
+ // if (startCreate3Service->startDetached(startCommand, startArgs))
157
+ // {
158
+ // qDebug() << "Create3 Server successfully started";
159
+ // }
160
+ // else
161
+ // {
162
+ // qDebug() << "Create3 Server failed to start or crashed.";
163
+ // }
164
164
}
165
165
166
166
void Create3Widget::sensorList ()
0 commit comments