Multi brokers MQTT semble fonctionner
This commit is contained in:
@@ -13,7 +13,7 @@ CGeneralStatusPage::CGeneralStatusPage(QWidget *parent) :
|
||||
|
||||
connect(ui->mClearGenMsgTxtBtn,&QPushButton::clicked,this,&CGeneralStatusPage::ClearGenMsgAreaBtnPressed);
|
||||
connect(ui->mQuitAppBtn,&QPushButton::clicked,this,&CGeneralStatusPage::QuitAppBtnPressed);
|
||||
SetMQTTConnectionStatus(false);
|
||||
//SetMQTTConnectionStatus(false);
|
||||
SetCANConnectionStatus(false);
|
||||
|
||||
ui->mCANModuleStatusTableWdgt->setColumnCount(3);
|
||||
@@ -155,6 +155,11 @@ int CGeneralStatusPage::SetMQTTConnectionStatus(bool Connected)
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
int CGeneralStatusPage::SetMQTTConnectionStatus(QString Status)
|
||||
{
|
||||
ui->mClientMQTTConnStatLbl->setText(Status);
|
||||
}
|
||||
|
||||
int CGeneralStatusPage::SetCANConnectionStatus(bool Connected)
|
||||
{
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ public:
|
||||
int AddGeneralMsgBoxLineEntry(QString LineTxt);
|
||||
|
||||
int SetMQTTConnectionStatus(bool Connected);
|
||||
int SetMQTTConnectionStatus(QString Status);
|
||||
int SetCANConnectionStatus(bool Connected);
|
||||
int UpdateCANModuleStatus(QString ModuleName, QString ModuleStatus, QString Buffer);
|
||||
int ClearCANModuleStatusTable();
|
||||
|
||||
@@ -47,31 +47,13 @@
|
||||
<string>Nettoyer</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="mClientMQTTLbl">
|
||||
<widget class="QLabel" name="mClientMQTTConnStatLbl">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1200</x>
|
||||
<y>210</y>
|
||||
<width>101</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Client MQTT:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="mClientMQTTConnStatLbl">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1300</x>
|
||||
<y>210</y>
|
||||
<width>121</width>
|
||||
<height>16</height>
|
||||
<width>251</width>
|
||||
<height>131</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
@@ -84,6 +66,9 @@
|
||||
<property name="text">
|
||||
<string>Déconnecté</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QTableWidget" name="mCANModuleStatusTableWdgt">
|
||||
<property name="geometry">
|
||||
@@ -131,8 +116,8 @@
|
||||
<widget class="QLabel" name="mInternetConnectedLbl">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1230</x>
|
||||
<y>240</y>
|
||||
<x>1200</x>
|
||||
<y>180</y>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
@@ -149,8 +134,8 @@
|
||||
<widget class="QLabel" name="mInternetPresentStatLbl">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1300</x>
|
||||
<y>240</y>
|
||||
<x>1270</x>
|
||||
<y>180</y>
|
||||
<width>121</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
@@ -254,8 +239,8 @@
|
||||
<widget class="QGroupBox" name="mSystemStateGroupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1210</x>
|
||||
<y>290</y>
|
||||
<x>1200</x>
|
||||
<y>370</y>
|
||||
<width>201</width>
|
||||
<height>121</height>
|
||||
</rect>
|
||||
|
||||
Reference in New Issue
Block a user